diff options
Diffstat (limited to 'source/a/acl')
-rwxr-xr-x | source/a/acl/acl.SlackBuild | 53 | ||||
-rw-r--r-- | source/a/acl/acl.url | 1 | ||||
-rw-r--r-- | source/a/acl/slack-desc | 2 |
3 files changed, 31 insertions, 25 deletions
diff --git a/source/a/acl/acl.SlackBuild b/source/a/acl/acl.SlackBuild index 83e78f9d..9d024b20 100755 --- a/source/a/acl/acl.SlackBuild +++ b/source/a/acl/acl.SlackBuild @@ -23,8 +23,8 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=acl -VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 4- -d . | rev | cut -f 2 -d -)} -BUILD=${BUILD:-2} +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -53,13 +53,15 @@ else LIBDIRSUFFIX="" fi +NUMJOBS=${NUMJOBS:-" -j7 "} + rm -rf $PKG -mkdir -p $TMP $PKG +mkdir -p $TMP $PKG/usr/lib${LIBDIRSUFFIX} cd $TMP rm -rf acl-$(echo $VERSION | cut -f 1 -d '-') -tar xvf $CWD/acl-$VERSION.src.tar.?z || exit 1 +tar xvf $CWD/acl-$VERSION.tar.?z || exit 1 cd acl-$(echo $VERSION | cut -f 1 -d '-') || exit 1 chown -R root:root . @@ -70,22 +72,19 @@ find . \ -exec chmod 644 {} \; ./configure \ - --prefix=/ \ - --exec-prefix=/ \ - --sbindir=/bin \ - --bindir=/usr/bin \ - --libdir=/lib${LIBDIRSUFFIX} \ - --libexecdir=/usr/lib${LIBDIRSUFFIX} \ - --includedir=/usr/include \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --docdir=/usr/doc/$PKGNAM-$VERSION \ --mandir=/usr/man \ - --datadir=/usr/share \ + --infodir=/usr/info \ + --disable-static \ --docdir=/usr/doc/acl-$VERSION \ --build=$ARCH-slackware-linux || exit 1 -make PKG_DOC_DIR=/usr/doc/acl-$VERSION || exit 1 -make install PKG_DOC_DIR=/usr/doc/acl-$VERSION DESTDIR=$PKG || exit 1 -make install-dev PKG_DOC_DIR=/usr/doc/acl-$VERSION DESTDIR=$PKG || exit 1 -make install-lib PKG_DOC_DIR=/usr/doc/acl-$VERSION DESTDIR=$PKG || exit 1 +make $NUMJOBS || make || exit 1 +make install DESTDIR=$PKG || exit 1 #It would be nice to keep the same timestamps that the files have in the source: cp -a \ @@ -96,17 +95,23 @@ cp -a \ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) -strip -g $PKG/usr/lib${LIBDIRSUFFIX}/*.a -# Remove bogus files: -rm -f $PKG/lib${LIBDIRSUFFIX}/*.a $PKG/lib${LIBDIRSUFFIX}/libacl.so $PKG/lib${LIBDIRSUFFIX}/*.la $PKG/usr/lib${LIBDIRSUFFIX}/*.la -# Make /usr/lib${LIBDIRSUFFIX}/libacl.so a symlink to /lib${LIBDIRSUFFIX}: +# Don't ship static libraries: +rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.a + +# Don't ship .la files: +rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.la + +# Move libraries, as they might be needed by programs that bring a network +# mounted /usr online: +mkdir $PKG/lib${LIBDIRSUFFIX} ( cd $PKG/usr/lib${LIBDIRSUFFIX} - rm -f libacl.so - ln -sf /lib${LIBDIRSUFFIX}/libacl.so.1 libacl.so + for file in lib*.so.?.* ; do + mv $file ../../lib${LIBDIRSUFFIX} + ln -sf ../../lib${LIBDIRSUFFIX}/$file . + done + cp -a lib*.so.? ../../lib${LIBDIRSUFFIX} ) -# Fix shared library perms: -chmod 755 $PKG/lib${LIBDIRSUFFIX}/* # Gzip the man pages: ( cd $PKG/usr/man diff --git a/source/a/acl/acl.url b/source/a/acl/acl.url new file mode 100644 index 00000000..ea5a80b3 --- /dev/null +++ b/source/a/acl/acl.url @@ -0,0 +1 @@ +http://download.savannah.nongnu.org/releases/acl diff --git a/source/a/acl/slack-desc b/source/a/acl/slack-desc index a3b5966f..95f100fc 100644 --- a/source/a/acl/slack-desc +++ b/source/a/acl/slack-desc @@ -13,7 +13,7 @@ acl: POSIX Access Control Lists. POSIX Access Control Lists (defined in acl: POSIX 1003.1e draft standard 17) are used to define more fine-grained acl: discretionary access rights for files and directories. acl: +acl: Homepage: http://savannah.nongnu.org/projects/acl acl: acl: -acl: Homepage: http://savannah.nongnu.org/projects/acl acl: |