#!/bin/bash ## src2pkg script for: file ## Auto-generated by src2pkg-1.9.8 ## src2pkg - Copyright 2005-2009 Gilbert Ashley SOURCE_NAME='file-5.03.tar.gz' NAME='file' # Use ALT_NAME to override guessed value VERSION='5.03' # Use ALT_VERSION to override guessed value # ARCH='' BUILD='1' PRE_FIX='usr' # Any extra options go here: EXTRA_CONFIGS="--sysconfdir=/etc --datadir=/etc --enable-fsect-man5" # HOWMANY is the number of bytes looked at by file EXTRA_FLAGS='-DHOWMANY=0x18000' PATCHLIST='file-patches/100-magic-update-asf.patch file-patches/101-magic-update-awk.patch file-patches/102-magic-update-bash.patch file-patches/103-magic-update-reiserfs.patch file-patches/104-magic-update-tcsh.patch file-patches/105-magic-update-zip.patch file-patches/106-magic-update-real.patch file-patches/107-magic-update-os2.patch file-patches/108-magic-update-digifax.patch file-patches/109-magic-update-mono.patch file-patches/110-magic-update-pfm.patch file-patches/111-magic-update-ocaml.patch file-patches/112-magic-update-linuxswap.patch file-patches/113-magic-update-linuxext.patch file-patches/114-magic-update-llvm.patch file-patches/115-magic-update-ruby.patch file-patches/116-magic-update-gimp.patch file-patches/117-magic-update-wav.patch file-patches/200-magic-add-par2.patch file-patches/201-magic-add-pe5.patch file-patches/202-magic-add-pmenu.patch file-patches/203-magic-add-powertab.patch file-patches/204-magic-add-scummvm.patch file-patches/205-magic-add-sgf.patch file-patches/206-magic-add-sisu.patch file-patches/207-magic-add-snes.patch file-patches/208-magic-add-ssh.patch file-patches/209-magic-add-ssl.patch file-patches/210-magic-add-subversion.patch file-patches/211-magic-add-supercollider.patch file-patches/212-magic-add-xen.patch file-patches/213-magic-add-xcursor.patch file-patches/214-magic-add-freemind.patch file-patches/215-magic-add-qdbm.diff file-patches/217-magic-add-cromfs.patch file-patches/218-magic-add-scribus.patch file-patches/219-magic-add-selinux.patch file-patches/220-magic-add-bzr.patch file-patches/900-file-mgc.patch file-patches/901-file-localmagic.patch file-patches/902-file-make.patch file-patches/903-file-hurd.patch file-patches/904-doc-manpages.patch file-patches/999-conglomeration.patch file-patches/file.quiet.diff.gz file-patches/file.short.diff.gz file-patches/file_5.00-1.diff.gz' # no longer needed: # file-patches/216-magic-add-tokyocabinet.patch # file-patches/file-5.00-xz.patch # file-patches/file-python-2.6-magic.diff # reworked: # file-patches/215-magic-add-qdbm.patch # # The file utility can use a compiled binary magic file to run faster, but it adds ~1MB # Uncomment this line to replace compiled binary magic file with plain-text magic USE_COMPILED_MAGIC=NO # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # Execute the 16 standard packaging steps: pre_process find_source make_dirs unpack_source zcat $PATCHES_DIR/file-patches/file.zisofs.magic.gz >> $SRC_DIR/magic/Magdir/compress zcat $PATCHES_DIR/file-patches/file.crdaregbin.magic.gz >> $SRC_DIR/magic/Magdir/crdaregbin fix_source_perms configure_source compile_source fake_install if [[ "$USE_COMPILED_MAGIC" = "NO" ]] ; then rm -f $PKG_DIR/etc/file/magic.mgc rm -f $PKG_DIR/etc/file/magic mkdir -p $PKG_DIR/etc/file/magic cp -a $SRC_DIR/magic/Magdir/* $PKG_DIR/etc/file/magic fi #add some missing headers mkdir -p $PKG_DIR/usr/include/file cp $SRC_DIR/src/file.h $SRC_DIR/src/patchlevel.h $PKG_DIR/usr/include/file fix_pkg_perms strip_bins create_docs compress_man_pages # remove empty man4 dir rmdir $MAN_DIR/man4 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)