diff options
-rw-r--r-- | anacron/anacron-2.3.diff | 12 | ||||
-rw-r--r--[-rwxr-xr-x] | anacron/anacron.SlackBuild (renamed from cairo/cairo.SlackBuild) | 47 |
2 files changed, 39 insertions, 20 deletions
diff --git a/anacron/anacron-2.3.diff b/anacron/anacron-2.3.diff new file mode 100644 index 00000000..983bc24b --- /dev/null +++ b/anacron/anacron-2.3.diff @@ -0,0 +1,12 @@ +diff -Naur anacron-2.3.orig/gregor.c anacron-2.3/gregor.c +--- anacron-2.3.orig/gregor.c 2000-06-22 19:50:40.000000000 -0300 ++++ anacron-2.3/gregor.c 2006-10-19 16:18:29.000000000 -0200 +@@ -65,7 +65,7 @@ + { + int dn; + int i; +- const int isleap; /* save three calls to leap() */ ++ int isleap; /* save three calls to leap() */ + + /* Some validity checks */ + diff --git a/cairo/cairo.SlackBuild b/anacron/anacron.SlackBuild index c1f14ec7..83ae3d04 100755..100644 --- a/cairo/cairo.SlackBuild +++ b/anacron/anacron.SlackBuild @@ -1,11 +1,11 @@ #!/bin/bash # -# slackbuild script for cairo +# slackbuild script for anacron # by rhatto at riseup.net # if [ -s "slack-required" ]; then - echo Recomended and required packages for building cairo are: + echo Recomended and required packages for building anacron are: cat slack-required | sed -e 's/^/\t/' if [ "$INTERACT" != "no" ]; then echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. @@ -27,9 +27,9 @@ if [ -f "~/.slackbuildrc" ]; then fi # default settings -PACKAGE="cairo" +PACKAGE="anacron" ARCH=${ARCH:=i486} -VERSION=${VERSION:=1.2.4} +VERSION=${VERSION:=2.3} BUILD=${BUILD:=1rha} SRC_DIR=${SRC:=$CWD} TMP=${TMP:=/tmp} @@ -51,7 +51,7 @@ ERROR_PATCH=40 RTOOL="wget" PACKAGE_EXT="gz" SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://cairographics.org/releases/$SRC" +URL="http://easynews.dl.sourceforge.net/sourceforge/anacron/$SRC" SRC_DIR="$SRC_DIR/$PACKAGE" mkdir -p $SRC_DIR @@ -72,14 +72,21 @@ if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH fi -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR || exit $ERROR_CONF make || exit $ERROR_MAKE -make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL CWD="`pwd`" +mkdir $TMP/package-$PACKAGE cd $TMP/package-$PACKAGE +mkdir -p usr/sbin var/spool/anacron usr/man/man5 usr/man/man8 +cp $CWD/anacron usr/sbin +cp $CWD/anacrontab.5 usr/man/man5 +cp $CWD/anacron.8 usr/man/man8 + +gzip usr/man/man5/anacrontab.5 +gzip usr/man/man8/anacron.8 + 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 @@ -92,24 +99,24 @@ cat << EOF > install/slack-desc # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. - |-----handy-ruler-----------------------------------------------------| -cairo: cairo -cairo: -cairo: Cairo is a vector graphics library designed to provide high-quality -cairo: display and print output. -cairo: -cairo: -cairo: -cairo: -cairo: -cairo: -cairo: + |-----handy-ruler-----------------------------------------------------| +anacron: anacron (periodic command scheduler) +anacron: +anacron: Anacron is a periodic command scheduler. It executes commands at +anacron: intervals specified in days. Unlike cron, it does not assume that the +anacron: system is running continuously. It can therefore be used to control +anacron: the execution of daily, weekly, and monthly jobs (or anything with +anacron: a period of n days), on systems that don't run 24 hours a day. When +anacron: installed and configured properly, Anacron will make sure that the +anacron: commands are run at the specified intervals as closely as +anacron: machine-uptime permits. +anacron: EOF # docs mkdir -p usr/doc/$PACKAGE-$VERSION -DOCS="AUTHORS BUGS CODING_STYLE COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1 ChangeLog* INSTALL NEWS PORTING_GUIDE README RELEASING ROADMAP TODO" +DOCS="COPYING ChangeLog README TODO" for file in $DOCS; do cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ |