summaryrefslogtreecommitdiffstats
path: root/slackware64-current/source/ap
diff options
context:
space:
mode:
Diffstat (limited to 'slackware64-current/source/ap')
-rw-r--r--slackware64-current/source/ap/at/at-3.1.20.tar.lz1
-rwxr-xr-xslackware64-current/source/ap/at/at.SlackBuild15
-rw-r--r--slackware64-current/source/ap/at/atd.default6
-rw-r--r--slackware64-current/source/ap/at/doinst.sh.gz2
-rw-r--r--slackware64-current/source/ap/at/rc.atd39
-rw-r--r--slackware64-current/source/ap/at/slack-desc2
6 files changed, 60 insertions, 5 deletions
diff --git a/slackware64-current/source/ap/at/at-3.1.20.tar.lz b/slackware64-current/source/ap/at/at-3.1.20.tar.lz
new file mode 100644
index 000000000..c97daee43
--- /dev/null
+++ b/slackware64-current/source/ap/at/at-3.1.20.tar.lz
@@ -0,0 +1 @@
+c8e1d08e6380561d88068dbfdf18afaad60c20fc
diff --git a/slackware64-current/source/ap/at/at.SlackBuild b/slackware64-current/source/ap/at/at.SlackBuild
index 468379146..6d8af5580 100755
--- a/slackware64-current/source/ap/at/at.SlackBuild
+++ b/slackware64-current/source/ap/at/at.SlackBuild
@@ -23,8 +23,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=at
-VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
+BUILD=${BUILD:-3}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -62,7 +62,7 @@ mkdir -p $TMP $PKG
cd $TMP
rm -rf at-$VERSION
-tar xvf $CWD/at-${VERSION}.tar.?z* || exit 1
+tar xvf $CWD/at-${VERSION}.tar.?z || exit 1
cd at-$VERSION || exit 1
chown -R root:root .
@@ -89,6 +89,15 @@ make install IROOT=$PKG || exit
mv $PKG/etc/at.deny $PKG/etc/at.deny.new
chown root:root $PKG/var $PKG/var/spool
+# Add the init script:
+mkdir -p $PKG/etc/rc.d
+cat $CWD/rc.atd > $PKG/etc/rc.d/rc.atd.new
+chmod 755 $PKG/etc/rc.d/rc.atd.new
+
+# Add the default file:
+mkdir -p $PKG/etc/default
+cat $CWD/atd.default > $PKG/etc/default/atd.new
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
diff --git a/slackware64-current/source/ap/at/atd.default b/slackware64-current/source/ap/at/atd.default
new file mode 100644
index 000000000..b70fad0b3
--- /dev/null
+++ b/slackware64-current/source/ap/at/atd.default
@@ -0,0 +1,6 @@
+# Default options for the atd daemon:
+#
+# -b 15: minimal interval in seconds between two jobs
+# -l 1: do not start new jobs if the load average is above 1
+
+ATD_OPTS="-b 15 -l 1"
diff --git a/slackware64-current/source/ap/at/doinst.sh.gz b/slackware64-current/source/ap/at/doinst.sh.gz
index 552b43fbb..0637a04fa 100644
--- a/slackware64-current/source/ap/at/doinst.sh.gz
+++ b/slackware64-current/source/ap/at/doinst.sh.gz
@@ -1 +1 @@
-1067dbf53e3eaeeb970745bb4c44e57f22f6d8cb
+25fe01aa5f8e9da74b142953cf1543ab79ce323c
diff --git a/slackware64-current/source/ap/at/rc.atd b/slackware64-current/source/ap/at/rc.atd
new file mode 100644
index 000000000..2e06f1695
--- /dev/null
+++ b/slackware64-current/source/ap/at/rc.atd
@@ -0,0 +1,39 @@
+#!/bin/sh
+# /etc/rc.d/rc.atd - start/stop the at daemon
+
+# To change the default options, edit /etc/default/atd.
+if [ -r /etc/default/atd ]; then
+ . /etc/default/atd
+fi
+
+start_atd() {
+ if ! /usr/bin/pgrep --ns $$ --exact atd 1> /dev/null 2> /dev/null ; then
+ echo "Starting atd: /usr/sbin/atd $ATD_OPTS"
+ /usr/sbin/atd $CROND_OPTS
+ fi
+}
+
+stop_atd() {
+ echo "Stopping atd."
+ /usr/bin/pkill --ns $$ --exact atd 2> /dev/null
+}
+
+restart_atd() {
+ stop_atd
+ sleep 1
+ start_atd
+}
+
+case "$1" in
+'start')
+ start_atd
+ ;;
+'stop')
+ stop_atd
+ ;;
+'restart')
+ restart_atd
+ ;;
+*)
+ echo "usage $0 start|stop|restart"
+esac
diff --git a/slackware64-current/source/ap/at/slack-desc b/slackware64-current/source/ap/at/slack-desc
index cc37d8b80..532193fbd 100644
--- a/slackware64-current/source/ap/at/slack-desc
+++ b/slackware64-current/source/ap/at/slack-desc
@@ -14,6 +14,6 @@ at: time.
at:
at: The 'at' command was written by David Parsons and Thomas Koenig.
at:
-at: Homepage: http://anonscm.debian.org/cgit/collab-maint/at.git/
+at: Homepage: http://ftp.debian.org/debian/pool/main/a/at
at:
at: