Changeset 30f002a
- Timestamp:
- 11/19/20 22:59:34 (4 years ago)
- Branches:
- master
- Children:
- 6e9c61f
- Parents:
- 3c9eb90
- Location:
- npl/overig/file
- Files:
-
- 2 added
- 1 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
npl/overig/file/file.SlackBuild
r3c9eb90 r30f002a 3 3 # Automaticly created by importpackage v1.0 4 4 # Imported from: https://mirrors.slackware.com/slackware/slackware-current/source/a/file/ 5 # Created at Thu Jul 6 14:29:22 CEST 20175 # Created at Thu Nov 19 22:22:59 CET 2020 6 6 7 7 -
npl/overig/file/file.SlackBuild.orig
r3c9eb90 r30f002a 1 #!/bin/ sh1 #!/bin/bash 2 2 3 # Copyright 2005-2008, 2009, 2010, 2013, 2015 Patrick J. Volkerding, Sebeka, MN, USA3 # Copyright 2005-2008, 2009, 2010, 2013, 2015, 2018, 2019 Patrick J. Volkerding, Sebeka, MN, USA 4 4 # All rights reserved. 5 5 # … … 21 21 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 22 23 cd $(dirname $0) ; CWD=$(pwd) 24 25 PKGNAM=file 23 26 VERSION=${VERSION:-$(echo file-*.tar.?z* | cut -d - -f 2 | rev | cut -f 3- -d . | rev)} 24 27 BUILD=${BUILD:-1} 25 28 26 NUMJOBS=${NUMJOBS:- -j7}29 NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} 27 30 28 31 # Automatically determine the architecture we're building on: … … 34 37 *) export ARCH=$( uname -m ) ;; 35 38 esac 39 fi 40 41 # If the variable PRINT_PACKAGE_NAME is set, then this script will report what 42 # the name of the created package would be, and then exit. This information 43 # could be useful to other scripts. 44 if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then 45 echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" 46 exit 0 36 47 fi 37 48 … … 50 61 fi 51 62 52 CWD=$(pwd)53 63 TMP=${TMP:-/tmp} 54 64 PKG=$TMP/package-file … … 63 73 find . \ 64 74 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ 65 -exec chmod 755 {} \ ;-o \75 -exec chmod 755 {} \+ -o \ 66 76 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ 67 -exec chmod 644 {} \ ;77 -exec chmod 644 {} \+ 68 78 69 79 # Make the default data directory /etc/file like it has always been: 70 80 zcat $CWD/file.etc.file.diff.gz | patch -p1 --verbose || exit 1 71 81 # This is needed after the patch above: 72 autoreconf || exit 182 autoreconf -vif || exit 1 73 83 74 84 # Since we're going to include the compiled magic database now (otherwise … … 82 92 # versions of file to avoid breaking existing scripts: 83 93 zcat $CWD/file.short.diff.gz | patch -p1 -E --verbose || exit 1 94 95 # Output on ELF objects should be "dynamically linked" for PT_DYNAMIC too, not 96 # just for PT_INTERP: 97 zcat $CWD/file.PT_DYNAMIC.is.dynamically.linked.diff.gz | patch -p1 -E --verbose || exit 1 84 98 85 99 # Add zisofs and crda regulatory bin detection … … 107 121 make install DESTDIR=$PKG || exit 1 108 122 123 # Don't ship .la files: 124 rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la 125 109 126 # Ignore for now - still labeled as experimental 110 127 # Actually, let's ignore it until something needs it :) <volkerdi> … … 122 139 mkdir -p $PKG/etc/file/magic 123 140 cp -a magic/Magdir/* $PKG/etc/file/magic 141 chmod 644 $PKG/etc/file/magic/* 124 142 125 143 # Add a script to recompile the flat files in the obvious location. … … 137 155 138 156 # Strip everything for good measure: 139 find $PKG | xargs file | grep -e "executable" -e "shared object" \140 | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null157 #find $PKG | xargs file | grep -e "executable" -e "shared object" \ 158 # | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null 141 159 142 160 ( cd $PKG/usr/man || exit 1 143 find . -type f -exec gzip -9 {} \ ;161 find . -type f -exec gzip -9 {} \+ 144 162 for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done 145 163 ) -
npl/overig/file/file.build
r3c9eb90 r30f002a 1 615 61 6157 -
npl/overig/file/file.md5
r3c9eb90 r30f002a 1 1 80362548cdf529ea3ec83eab148c7572 ./doinst.sh.gz 2 4676f6f3b2d25e05e0b0147a03d25970 ./file-5.31.tar.xz2 94485814a8cd04ffe9e879f0695e0dea ./file-5.39.tar.lz 3 3 e44387a21f9847f0ff3b1c74deff8bdf ./file.crdaregbin.magic.gz 4 e1e6455b2de8c11276bdde91c629bebf./file_dev.pkg4 4a43e3e267dc94d47852e150acffed05 ./file_dev.pkg 5 5 29ee5a5acfcc82346b17cc35bb3acbec ./file.etc.file.diff.gz 6 03b8137248300a058ad80e0e3fb2249f ./file.pkg 6 fb50f51e47ba642ba528327671644a1c ./file.pkg 7 9300560a5e810a80cdab76b9eb8d0580 ./file.PT_DYNAMIC.is.dynamically.linked.diff.gz 7 8 652847e073fbca6df77c6696ac4c69e1 ./file.quiet.diff.gz 8 9 f020cd0ec342bea06b34116ddcd99232 ./file.short.diff.gz 9 ef4a98a45b0505fcdad8d14203c66569./file.SlackBuild10 3a23f80e6586eefb7eb1af9525cf2c4e./file.SlackBuild.log.gz11 124612aafee1040ce8ac02244bbc654a./file.SlackBuild.orig10 daa89d8f244d6388d4d7dc9f3a34f954 ./file.SlackBuild 11 599ddfbc0d731828413b65b6a6640932 ./file.SlackBuild.log.gz 12 e283c429fac458099895f002bb91e4ae ./file.SlackBuild.orig 12 13 a6e8dc289abcf6c796e2d4e8dff41b08 ./file.xz.magic.gz 13 14 de45e4cbf64268d44dafc52db3b7a696 ./file.zisofs.magic.gz 14 15 efd81ad886482c4a1f35e3e97d04329c ./recompile_magic.mgc.sh.gz 15 1ce145ce51e5475077c6d036ed2ebb90./slack-desc16 35fe7bf1f85bdbcb353b9d1a49d23f7a ./slack-desc -
npl/overig/file/file.version
r3c9eb90 r30f002a 1 5.3 11 5.39 -
npl/overig/file/file_dev.build
r3c9eb90 r30f002a 1 6156 1 1 -
npl/overig/file/file_dev.version
r3c9eb90 r30f002a 1 5.3 11 5.39 -
npl/overig/file/slack-desc
r3c9eb90 r30f002a 1 1 # HOW TO EDIT THIS FILE: 2 # The "handy ruler" below makes it easier to edit a package description. 2 # The "handy ruler" below makes it easier to edit a package description. Line 3 3 # up the first '|' above the ':' following the base package name, and the '|' 4 # on the right side marks the last column you can put a character in. 5 # make exactly 11 lines for the formatting to be correct. 4 # on the right side marks the last column you can put a character in. You must 5 # make exactly 11 lines for the formatting to be correct. It's also 6 6 # customary to leave one space after the ':'. 7 7 … … 12 12 file: Christos Zoulas has been file's maintainer since 1994. 13 13 file: 14 file: Home FTP site: 14 file: Home FTP site: ftp://ftp.astron.com/pub/file/ 15 15 file: 16 16 file:
Note: See TracChangeset
for help on using the changeset viewer.