#!/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.
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}
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
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
# 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/