diff options
Diffstat (limited to 'source')
-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 | ||||
-rwxr-xr-x | source/a/attr/attr.SlackBuild | 55 | ||||
-rw-r--r-- | source/a/attr/attr.url | 1 | ||||
-rw-r--r-- | source/a/attr/doinst.sh | 14 | ||||
-rwxr-xr-x | source/n/gnupg/gnupg.SlackBuild | 2 | ||||
-rw-r--r-- | source/x/x11/build/libXaw3d | 2 | ||||
-rw-r--r-- | source/x/x11/build/xf86-input-mouse | 2 | ||||
-rw-r--r-- | source/x/x11/patch/xf86-input-mouse.patch | 2 | ||||
-rw-r--r-- | source/x/x11/patch/xf86-input-mouse/3c8f243b750a92d5837a449d344ff884dbd02b57.patch | 42 | ||||
-rwxr-xr-x | source/xap/sane/sane.SlackBuild | 1 |
12 files changed, 85 insertions, 92 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: diff --git a/source/a/attr/attr.SlackBuild b/source/a/attr/attr.SlackBuild index f9593d5d..1254c5ca 100755 --- a/source/a/attr/attr.SlackBuild +++ b/source/a/attr/attr.SlackBuild @@ -23,8 +23,8 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=attr -VERSION=2.4.47 -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,12 +53,14 @@ else LIBDIRSUFFIX="" fi +NUMJOBS=${NUMJOBS:-" -j7 "} + rm -rf $PKG mkdir -p $TMP $PKG cd $TMP rm -rf attr-$(echo $VERSION | cut -f 1 -d '-') -tar xvf $CWD/attr-$VERSION.src.tar.?z || exit 1 +tar xvf $CWD/attr-$VERSION.tar.?z || exit 1 cd attr-$(echo $VERSION | cut -f 1 -d '-') || exit 1 chown -R root:root . find . \ @@ -68,22 +70,39 @@ 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 \ --docdir=/usr/doc/attr-$VERSION \ + --disable-static \ --build=$ARCH-slackware-linux || exit 1 -make PKG_DOC_DIR=/usr/doc/attr-$VERSION || exit 1 -make install PKG_DOC_DIR=/usr/doc/attr-$VERSION DESTDIR=$PKG || exit 1 -make install-dev PKG_DOC_DIR=/usr/doc/attr-$VERSION DESTDIR=$PKG || exit 1 -make install-lib PKG_DOC_DIR=/usr/doc/attr-$VERSION DESTDIR=$PKG || exit 1 +make $NUMJOBS || make || exit 1 +make install DESTDIR=$PKG || exit 1 + +# Install xattr.conf as a .new file: +mv $PKG/etc/xattr.conf $PKG/etc/xattr.conf.new + +# Don't ship static library: +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} + for file in lib*.so.?.* ; do + mv $file ../../lib${LIBDIRSUFFIX} + ln -sf ../../lib${LIBDIRSUFFIX}/$file . + done + cp -a lib*.so.? ../../lib${LIBDIRSUFFIX} +) #It would be nice to keep the same timestamps that the files have in the source: rm -rf $PKG/usr/doc/attr-$VERSION/ea-conv @@ -95,11 +114,6 @@ find $PKG | xargs file | grep -e "executable" -e "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}/libattr.so $PKG/lib${LIBDIRSUFFIX}/*.la $PKG/usr/lib${LIBDIRSUFFIX}/*.la -# Make /usr/lib${LIBDIRSUFFIX}/libattr.so a symlink to /lib${LIBDIRSUFFIX}: -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX} -ln -sf /lib${LIBDIRSUFFIX}/libattr.so.1 $PKG/usr/lib${LIBDIRSUFFIX}/libattr.so # Fix shared library perms: chmod 755 $PKG/lib${LIBDIRSUFFIX}/* @@ -111,6 +125,7 @@ chmod 755 $PKG/lib${LIBDIRSUFFIX}/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $TMP/attr-$(echo $VERSION | tr - _ )-$ARCH-$BUILD.txz diff --git a/source/a/attr/attr.url b/source/a/attr/attr.url new file mode 100644 index 00000000..f9f14b84 --- /dev/null +++ b/source/a/attr/attr.url @@ -0,0 +1 @@ +http://download.savannah.nongnu.org/releases/attr diff --git a/source/a/attr/doinst.sh b/source/a/attr/doinst.sh new file mode 100644 index 00000000..ca6ce568 --- /dev/null +++ b/source/a/attr/doinst.sh @@ -0,0 +1,14 @@ +#!/bin/sh +config() { + NEW="$1" + OLD="`dirname $NEW`/`basename $NEW .new`" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/xattr.conf.new diff --git a/source/n/gnupg/gnupg.SlackBuild b/source/n/gnupg/gnupg.SlackBuild index 5de0ee6c..8836b552 100755 --- a/source/n/gnupg/gnupg.SlackBuild +++ b/source/n/gnupg/gnupg.SlackBuild @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=gnupg VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-2} +BUILD=${BUILD:-1} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then diff --git a/source/x/x11/build/libXaw3d b/source/x/x11/build/libXaw3d index b8626c4c..d00491fd 100644 --- a/source/x/x11/build/libXaw3d +++ b/source/x/x11/build/libXaw3d @@ -1 +1 @@ -4 +1 diff --git a/source/x/x11/build/xf86-input-mouse b/source/x/x11/build/xf86-input-mouse index 00750edc..d00491fd 100644 --- a/source/x/x11/build/xf86-input-mouse +++ b/source/x/x11/build/xf86-input-mouse @@ -1 +1 @@ -3 +1 diff --git a/source/x/x11/patch/xf86-input-mouse.patch b/source/x/x11/patch/xf86-input-mouse.patch deleted file mode 100644 index e54c5190..00000000 --- a/source/x/x11/patch/xf86-input-mouse.patch +++ /dev/null @@ -1,2 +0,0 @@ -zcat $CWD/patch/xf86-input-mouse/3c8f243b750a92d5837a449d344ff884dbd02b57.patch.gz \ - | patch -p1 --verbose || { touch ${SLACK_X_BUILD_DIR}/${PKGNAME}.failed ; continue ; } diff --git a/source/x/x11/patch/xf86-input-mouse/3c8f243b750a92d5837a449d344ff884dbd02b57.patch b/source/x/x11/patch/xf86-input-mouse/3c8f243b750a92d5837a449d344ff884dbd02b57.patch deleted file mode 100644 index 5726c50a..00000000 --- a/source/x/x11/patch/xf86-input-mouse/3c8f243b750a92d5837a449d344ff884dbd02b57.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 3c8f243b750a92d5837a449d344ff884dbd02b57 Mon Sep 17 00:00:00 2001 -From: Adam Jackson <ajax@redhat.com> -Date: Thu, 16 Feb 2017 09:21:21 -0500 -Subject: Adapt to removal of xf86GetOS - -Signed-off-by: Adam Jackson <ajax@redhat.com> ---- - src/mouse.c | 11 +++++------ - 1 file changed, 5 insertions(+), 6 deletions(-) - -diff --git a/src/mouse.c b/src/mouse.c -index dae98aa..40d97a9 100644 ---- a/src/mouse.c -+++ b/src/mouse.c -@@ -794,7 +794,6 @@ InitProtocols(void) - { - int classes; - int i; -- const char *osname = NULL; - - if (osInfo) - return TRUE; -@@ -821,11 +820,11 @@ InitProtocols(void) - mouseProtocols[i].id = PROT_UNSUP; - - /* NetBSD uses PROT_BM for "PS/2". */ -- xf86GetOS(&osname, NULL, NULL, NULL); -- if (osname && xf86NameCmp(osname, "netbsd") == 0) -- for (i = 0; mouseProtocols[i].name; i++) -- if (mouseProtocols[i].id == PROT_PS2) -- mouseProtocols[i].id = PROT_BM; -+#if defined(__NetBSD__) -+ for (i = 0; mouseProtocols[i].name; i++) -+ if (mouseProtocols[i].id == PROT_PS2) -+ mouseProtocols[i].id = PROT_BM; -+#endif - - return TRUE; - } --- -cgit v1.1 - diff --git a/source/xap/sane/sane.SlackBuild b/source/xap/sane/sane.SlackBuild index e14b943b..f66739c1 100755 --- a/source/xap/sane/sane.SlackBuild +++ b/source/xap/sane/sane.SlackBuild @@ -152,6 +152,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ # Don't ship .la files: rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la +rm -f /usr/lib${LIBDIRSUFFIX}/libsane.la # List additional backends in /etc/sane.d/dll.conf. # I don't think it will hurt anything to do this, even |