diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2007-01-16 11:36:16 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2007-01-16 11:36:16 +0000 |
commit | e2a124d45391bed5afa07a4a0e3708dd7113f11c (patch) | |
tree | 13363c58d474e7fc736fa43becd3a86a2111eee1 /net/libs/librsync | |
parent | ac73a3ac4e8f3b2ba0fe9f07baebb2b74e5ef455 (diff) | |
download | slackbuilds-e2a124d45391bed5afa07a4a0e3708dd7113f11c.tar.gz slackbuilds-e2a124d45391bed5afa07a4a0e3708dd7113f11c.tar.bz2 |
librsync: update
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@967 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'net/libs/librsync')
-rwxr-xr-x | net/libs/librsync/librsync.SlackBuild | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/net/libs/librsync/librsync.SlackBuild b/net/libs/librsync/librsync.SlackBuild index 2e6955ed..39a9f42c 100755 --- a/net/libs/librsync/librsync.SlackBuild +++ b/net/libs/librsync/librsync.SlackBuild @@ -4,6 +4,18 @@ # by rhatto at riseup.net # +if [ -s "slack-required" ]; then + echo Recomended and required packages for building librsync 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. + read crap +# else +# echo Sleeping 3 seconds... +# sleep 3 + fi +fi + CWD="`pwd`" if [ -f ~/.slackbuildrc ]; then @@ -21,6 +33,12 @@ SRC_DIR=${SRC:=$CWD} TMP=${TMP:=/tmp} REPOS=${REPOS:=$TMP} +# ------- error codes for createpkg -------------- +ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 +ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 +ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 +ERROR_PATCH=40 + if [ "$ARCH" == "x86_64" ]; then LIBDIR=/usr/lib64 export CFLAGS=-fPIC @@ -33,17 +51,11 @@ PACKAGE_EXT="gz" SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" URL="http://easynews.dl.sourceforge.net/sourceforge/librsync/$SRC" -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - SRC_DIR="$SRC_DIR/$PACKAGE" mkdir -p $SRC_DIR if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" + wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET fi TMP="$TMP/$PACKAGE" @@ -51,12 +63,12 @@ rm -rf $TMP mkdir -p $TMP cd $TMP -tar xvf$tarflag $SRC_DIR/$SRC +tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR cd $PACKAGE-$VERSION -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR -make all check -make DESTDIR=$TMP/package-$PACKAGE/$PACKAGE install +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR || exit $ERROR_CONF +make all check || exit $ERROR_MAKE +make DESTDIR=$TMP/package-$PACKAGE/$PACKAGE install || exit $ERROR_INSTALL CWD="`pwd`" @@ -97,7 +109,7 @@ done echo 'chroot . /sbin/ldconfig' > install/doinst.sh -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG if [ "$CLEANUP" == "yes" ]; then rm -rf $TMP |