Update to 2.6.6
Use newstyle metadata and build.sh
This commit is contained in:
parent
fdb11cdfc4
commit
9d9c480784
@ -3,12 +3,13 @@
|
|||||||
# This is a generic build.sh script
|
# This is a generic build.sh script
|
||||||
# It can be used nearly unmodified with many packages
|
# It can be used nearly unmodified with many packages
|
||||||
#
|
#
|
||||||
# The concept of "method" registering and the logic that implements it was shamelessly
|
# build.sh helper functions
|
||||||
# stolen from jhlj's Compile.sh script :)
|
. ${BUILDPKG_BASE}/scripts/build.sh.functions
|
||||||
#
|
#
|
||||||
|
###########################################################
|
||||||
# Check the following 4 variables before running the script
|
# Check the following 4 variables before running the script
|
||||||
topdir=rsync
|
topdir=rsync
|
||||||
version=2.5.7
|
version=2.6.6
|
||||||
pkgver=1
|
pkgver=1
|
||||||
source[0]=$topdir-$version.tar.gz
|
source[0]=$topdir-$version.tar.gz
|
||||||
# If there are no patches, simply comment this
|
# If there are no patches, simply comment this
|
||||||
@ -17,18 +18,8 @@ source[0]=$topdir-$version.tar.gz
|
|||||||
# Source function library
|
# Source function library
|
||||||
. ${BUILDPKG_BASE}/scripts/buildpkg.functions
|
. ${BUILDPKG_BASE}/scripts/buildpkg.functions
|
||||||
|
|
||||||
# Fill in pkginfo values if necessary
|
# Global settings
|
||||||
# using pkgname,name,pkgcat,pkgvendor & pkgdesc
|
configure_args="--prefix=$prefix --with-included-popt"
|
||||||
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"
|
|
||||||
}
|
|
||||||
|
|
||||||
reg prep
|
reg prep
|
||||||
prep()
|
prep()
|
||||||
@ -63,42 +54,4 @@ distclean()
|
|||||||
###################################################
|
###################################################
|
||||||
# No need to look below here
|
# No need to look below here
|
||||||
###################################################
|
###################################################
|
||||||
|
build_sh $*
|
||||||
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
|
|
||||||
|
10
rsync/meta/pkgdef
Normal file
10
rsync/meta/pkgdef
Normal 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
|
@ -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%%"
|
|
Loading…
x
Reference in New Issue
Block a user