Update to 2.6.6

Use newstyle metadata and build.sh
This commit is contained in:
Tom G. Christensen 2005-12-19 08:53:13 +00:00 committed by tgc
parent fdb11cdfc4
commit 9d9c480784
3 changed files with 17 additions and 65 deletions

View File

@ -3,12 +3,13 @@
# This is a generic build.sh script
# It can be used nearly unmodified with many packages
#
# The concept of "method" registering and the logic that implements it was shamelessly
# stolen from jhlj's Compile.sh script :)
# build.sh helper functions
. ${BUILDPKG_BASE}/scripts/build.sh.functions
#
###########################################################
# Check the following 4 variables before running the script
topdir=rsync
version=2.5.7
version=2.6.6
pkgver=1
source[0]=$topdir-$version.tar.gz
# If there are no patches, simply comment this
@ -17,18 +18,8 @@ source[0]=$topdir-$version.tar.gz
# Source function library
. ${BUILDPKG_BASE}/scripts/buildpkg.functions
# Fill in pkginfo values if necessary
# using pkgname,name,pkgcat,pkgvendor & pkgdesc
name="rsync - File transfer utility"
pkgcat="application"
pkgvendor="http://rsync.samba.org"
pkgdesc="Fast incremental file transfer utility"
# Define script functions and register them
METHODS=""
reg() {
METHODS="$METHODS $1"
}
# Global settings
configure_args="--prefix=$prefix --with-included-popt"
reg prep
prep()
@ -63,42 +54,4 @@ distclean()
###################################################
# No need to look below here
###################################################
reg all
all()
{
for METHOD in $METHODS
do
case $METHOD in
all*|*clean) ;;
*) $METHOD
;;
esac
done
}
reg
usage() {
echo Usage $0 "{"$(echo $METHODS | tr " " "|")"}"
exit 1
}
OK=0
for METHOD in $*
do
METHOD=" $METHOD *"
if [ "${METHODS%$METHOD}" == "$METHODS" ] ; then
usage
fi
OK=1
done
if [ $OK = 0 ] ; then
usage;
fi
for METHOD in $*
do
( $METHOD )
done
build_sh $*

10
rsync/meta/pkgdef Normal file
View File

@ -0,0 +1,10 @@
[rsync]
pkgname="$pkgprefix""$topdir"
name="$topdir"
pkgcat="application"
pkgvendor="http://samba.anu.edu.au/rsync/"
pkgdesc="Utility that provides fast incremental file transfer"
pkgver="$pkgver"
files(-,root,bin)
$_bindir
$_mandir

View File

@ -1,11 +0,0 @@
PKG="%%pkgname%%"
NAME="%%name%%"
ARCH="sparc"
VERSION="%%version%%"
CATEGORY="%%pkgcat%%"
VENDOR="%%pkgvendor%%"
EMAIL="Tom G. Christenen - tgc@statsbiblioteket.dk"
PSTAMP="%%pkgver%%"
BASEDIR="%%topinstalldir%%"
CLASSES="none"
DESC="%%pkgdesc%%"