summaryrefslogtreecommitdiff
path: root/source/n/autofs
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2009-08-26 10:00:38 -0500
committerEric Hameleers <alien@slackware.com>2018-05-31 22:41:17 +0200
commit5a12e7c134274dba706667107d10d231517d3e05 (patch)
tree55718d5acb710fde798d9f38d0bbaf594ed4b296 /source/n/autofs
downloadcurrent-5a12e7c134274dba706667107d10d231517d3e05.tar.gz
Slackware 13.0slackware-13.0
Wed Aug 26 10:00:38 CDT 2009 Slackware 13.0 x86_64 is released as stable! Thanks to everyone who helped make this release possible -- see the RELEASE_NOTES for the credits. The ISOs are off to the replicator. This time it will be a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. We're taking pre-orders now at store.slackware.com. Please consider picking up a copy to help support the project. Once again, thanks to the entire Slackware community for all the help testing and fixing things and offering suggestions during this development cycle. As always, have fun and enjoy! -P.
Diffstat (limited to 'source/n/autofs')
-rw-r--r--source/n/autofs/autofs-3.1.7.diff11
-rw-r--r--source/n/autofs/autofs-3.1.7.tar.bz2.sign8
-rwxr-xr-xsource/n/autofs/autofs.SlackBuild88
-rw-r--r--source/n/autofs/autofs.gcc.fix.diff12
-rw-r--r--source/n/autofs/autofs.x86_64.diff11
-rw-r--r--source/n/autofs/slack-desc19
6 files changed, 149 insertions, 0 deletions
diff --git a/source/n/autofs/autofs-3.1.7.diff b/source/n/autofs/autofs-3.1.7.diff
new file mode 100644
index 00000000..7849eae9
--- /dev/null
+++ b/source/n/autofs/autofs-3.1.7.diff
@@ -0,0 +1,11 @@
+--- ./modules/lookup_program.c.orig Sat Mar 24 14:16:45 2001
++++ ./modules/lookup_program.c Sat Mar 24 14:18:18 2001
+@@ -16,7 +16,7 @@
+
+ #include <ctype.h>
+ #include <errno.h>
+-#include <limits.h>
++#include <linux/limits.h>
+ #include <malloc.h>
+ #include <stdio.h>
+ #include <string.h>
diff --git a/source/n/autofs/autofs-3.1.7.tar.bz2.sign b/source/n/autofs/autofs-3.1.7.tar.bz2.sign
new file mode 100644
index 00000000..8f80176b
--- /dev/null
+++ b/source/n/autofs/autofs-3.1.7.tar.bz2.sign
@@ -0,0 +1,8 @@
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.0.4 (GNU/Linux)
+Comment: See http://www.kernel.org/signature.html for info
+
+iD8DBQA6A7VZyGugalF9Dw4RAkieAJ96c+Si+lGnoSf0OJCanmwE7dilBwCgieKQ
+SshwUTt1sSA9Iu3meWUm2yk=
+=1kDE
+-----END PGP SIGNATURE-----
diff --git a/source/n/autofs/autofs.SlackBuild b/source/n/autofs/autofs.SlackBuild
new file mode 100755
index 00000000..8886f3f1
--- /dev/null
+++ b/source/n/autofs/autofs.SlackBuild
@@ -0,0 +1,88 @@
+#!/bin/sh
+
+# Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+VERSION=3.1.7
+ARCH=${ARCH:-x86_64}
+NUMJOBS=${NUMJOBS:-" -j7 "}
+BUILD=${BUILD:-1}
+
+if [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+else
+ LIBDIRSUFFIX=""
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp}
+PKG=$TMP/package-autofs
+
+rm -rf $PKG
+mkdir -p $TMP $PKG/usr/{sbin,man/man{5,8}}
+
+cd $TMP
+tar xvf $CWD/autofs-$VERSION.tar.bz2 || exit 1
+cd autofs-$VERSION || exit 1
+zcat $CWD/autofs-$VERSION.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1
+# Allow x86_64 arch:
+zcat $CWD/autofs.x86_64.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1
+# Compensate for modern compiler requirements:
+zcat $CWD/autofs.gcc.fix.diff.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1
+sed -i -e "s/OPEN_MAX/NR_OPEN/" $(grep -lr OPEN_MAX *)
+
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --build=$ARCH-slackware-linux
+
+make || exit 1
+
+make install INSTALLROOT=$PKG || exit 1
+
+strip $PKG/usr/sbin/*
+gzip -9 $PKG/usr/man/man*/*
+
+mkdir -p $PKG/usr/doc/autofs-$VERSION
+cp -a \
+ COPYING COPYRIGHT NEWS README README.options TODO \
+ multiserver_mount.patch samples \
+ $PKG/usr/doc/autofs-$VERSION
+( cd $PKG/usr/doc/autofs-$VERSION
+ find . \( -name Makefile -o -name *.in \) -exec rm -f {} \;
+ find . -type d -exec chmod 755 {} \;
+ find . -type f -exec chmod 644 {} \;
+)
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+# Build the package:
+cd $PKG
+/sbin/makepkg -l y -c n $TMP/autofs-$VERSION-$ARCH-$BUILD.txz
+
diff --git a/source/n/autofs/autofs.gcc.fix.diff b/source/n/autofs/autofs.gcc.fix.diff
new file mode 100644
index 00000000..8b30019f
--- /dev/null
+++ b/source/n/autofs/autofs.gcc.fix.diff
@@ -0,0 +1,12 @@
+diff -Naur autofs-3.1.7/modules/lookup_file.c autofs-3.1.7-gcc/modules/lookup_file.c
+--- autofs-3.1.7/modules/lookup_file.c 2000-11-04 07:05:17.000000000 +0000
++++ autofs-3.1.7-gcc/modules/lookup_file.c 2006-08-16 18:21:21.000000000 +0100
+@@ -197,7 +197,7 @@
+ }
+ break;
+ }
+- next_char: /* End of loop, since we can't continue;
++ next_char:; /* End of loop, since we can't continue;
+ inside a switch */
+ }
+
diff --git a/source/n/autofs/autofs.x86_64.diff b/source/n/autofs/autofs.x86_64.diff
new file mode 100644
index 00000000..8c4bf677
--- /dev/null
+++ b/source/n/autofs/autofs.x86_64.diff
@@ -0,0 +1,11 @@
+--- autofs-3.1.7/include/linux/auto_fs.h 2000-11-04 07:05:18.000000000 +0000
++++ auto_fs.h 2006-10-19 13:46:21.000000000 +0000
+@@ -45,7 +45,7 @@
+ * If so, 32-bit user-space code should be backwards compatible.
+ */
+
+-#if defined(__sparc__) || defined(__mips__)
++#if defined(__sparc__) || defined(__mips__) || defined(__s390__) || defined(__x86_64__)
+ typedef unsigned int autofs_wqt_t;
+ #else
+ typedef unsigned long autofs_wqt_t;
diff --git a/source/n/autofs/slack-desc b/source/n/autofs/slack-desc
new file mode 100644
index 00000000..a7af6c0b
--- /dev/null
+++ b/source/n/autofs/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+autofs: autofs (kernel-based automounter)
+autofs:
+autofs: autofs is a kernel-based automounter for Linux. It performs a job
+autofs: similar to amd(8) but relies on a small stub of kernel code instead of
+autofs: pretending to be an NFS server. The result is simpler code, better
+autofs: reliability, and much faster operation in the common case (everything
+autofs: already mounted.)
+autofs:
+autofs:
+autofs:
+autofs: