#!/bin/bash ## src2pkg script for: cdrkit ## Auto-generated by src2pkg-2.1 ## src2pkg - Copyright 2005-2009 Gilbert Ashley SOURCE_NAME='cdrkit_1.1.10.orig.tar.gz' NAME='cdrkit' # Use ALT_NAME to override guessed value VERSION='1.1.10' # Use ALT_VERSION to override guessed value # ARCH='' # BUILD='1' # PRE_FIX='usr' # Any extra options go here: # EXTRA_CONFIGS="" PATCHLIST='cdrkit-patches/cdrkit-1.1.8-werror.patch cdrkit-patches/cdrkit-1.1.9-buffer_overflow.patch cdrkit-patches/cdrkit-1.1.9-efi-boot.patch #cdrkit-patches/cdrkit-1.1.9-root_option.patch #cdrkit-patches/cdrkit-1.1.9-types.patch cdrkit-patches/cdrkit_1.1.10-1.diff.gz cdrkit-patches/cdrkit-unfound-libcap-header.diff' DOCLIST='ABOUT COPYING Changelog FAQ FORK START TODO VERSION doc' ZISOFS_VERSION=1.0.7 # Optional function replaces configure_source, compile_source, fake_install # To use, uncomment and write/paste CODE between the {} brackets. # build() { CODE } # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # Execute the named packaging steps: pre_process find_source make_dirs unpack_source fix_source_perms configure_source # compile_source # If used, the 'build' function replaces these 3 fake_install # # add compatibility links ( cd $PKG_DIR/usr/bin ln -s wodim cdrecord ln -s icedax cdda2wav ln -s genisoimage mkisofs ln -s readom readcd ) ( cd $MAN_DIR/man1 ln -s wodim.1 cdrecord.1 ln -s readom.1 readcd.1 ) cp $SRC_DIR/3rd-party/geteltorito/geteltorito.pl $PKG_DIR/usr/bin/geteltorito mkdir -p $MAN_DIR/man1 cp $SRC_DIR/3rd-party/geteltorito.1 $MAN_DIR/man1 # now build zisofs echo "Now building zisofs" ( cd $SRC_DIR tar xjf $CWD/zisofs-tools-$ZISOFS_VERSION.tar.bz2 cd zisofs-tools-$ZISOFS_VERSION chown -R root:root . find . -perm 775 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; ./configure --prefix=/usr make cat mkzftree > $PKG_DIR/usr/bin/mkzftree chmod 755 $PKG_DIR/usr/bin/mkzftree #cat mkzftree.1 > $PKG_DIR/usr/share/man/man1/mkzftree.1 mkdir -p $DOC_DIR/zisofs-tools cp -a CHANGES COPYING INSTALL README zisofs.magic $DOC_DIR/zisofs-tools ) fix_pkg_perms strip_bins create_docs # fix up the docs ( cd $DOC_DIR/doc && mv * .. ) ( cd $DOC_DIR && rmdir doc ) ( cd $DOC_DIR && rm -rf ANNOUNCEMENTs ) # very long Changelog here, so cut the old cdrtools entries ( cd $DOC_DIR head -n 592 Changelog > Changelog.tmp mv Changelog.tmp Changelog ) compress_man_pages make_description make_doinst make_package post_process ## See the documentation for more help and examples. Below are some of # the most common Extras and Options for easy cut-and-paste use. # DOCLIST='' PATCHLIST='' INSTALL_TYPE='' # CONFIG_COMMAND='' MAKE_COMMAND='' INSTALL_LINE='' # When editing src2pkg scripts to add custom code, use these variables # to refer to the current directory, the sources or the package tree: # $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree) # Other commonly-used directories include: $DOC_DIR (document directory) # $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory)