diff options
-rw-r--r-- | httpup/.footprint | 9 | ||||
-rw-r--r-- | httpup/.md5sum | 2 | ||||
-rw-r--r-- | httpup/.sha256sum | 2 | ||||
-rw-r--r-- | httpup/Pkgfile | 21 | ||||
-rw-r--r-- | httpup/httpup | 12 |
5 files changed, 25 insertions, 21 deletions
diff --git a/httpup/.footprint b/httpup/.footprint index 52179d3..72e50e5 100644 --- a/httpup/.footprint +++ b/httpup/.footprint @@ -6,7 +6,8 @@ drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/bin/ -rwxr-xr-x root/root usr/bin/httpup -rwxr-xr-x root/root usr/bin/httpup-repgen -drwxr-xr-x root/root usr/man/ -drwxr-xr-x root/root usr/man/man8/ --rw-r--r-- root/root usr/man/man8/httpup-repgen.8.gz --rw-r--r-- root/root usr/man/man8/httpup.8.gz +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man8/ +-rw-r--r-- root/root usr/share/man/man8/httpup-repgen.8.bz2 +-rw-r--r-- root/root usr/share/man/man8/httpup.8.bz2 diff --git a/httpup/.md5sum b/httpup/.md5sum index 4eb0623..cf708ad 100644 --- a/httpup/.md5sum +++ b/httpup/.md5sum @@ -1,2 +1,2 @@ -faa600a1b0349fe78b0eb463cab444df httpup +c5bd2b2f425123ca3a14834f3dc4d5c8 httpup 2c36fc594ba4b565763ba7314b14c729 httpup-0.4.0k.tar.gz diff --git a/httpup/.sha256sum b/httpup/.sha256sum new file mode 100644 index 0000000..53fcd95 --- /dev/null +++ b/httpup/.sha256sum @@ -0,0 +1,2 @@ +4fbee0e99dcc0b8af79438d99884a9da315c777a1f71d99429b8c020db60eed0 httpup +780043fa99e9c1b09b115f4e0a71fc4aeb7278a59fbfcd65c9d34385ee52f3d6 httpup-0.4.0k.tar.gz diff --git a/httpup/Pkgfile b/httpup/Pkgfile index 7e7f6a9..6656741 100644 --- a/httpup/Pkgfile +++ b/httpup/Pkgfile @@ -1,19 +1,20 @@ -description="One way sync over http" -packager="" -maintainer="CRUX System Team, core-ports at crux dot nu" +description="One way sync over http." +packager="CRUX System Team <core-ports AT crux DOT nu>" +maintainer="Lukc <lukc AT upyum DOT com>" url="http://jw.tks6.net/files/crux/httpup_manual.html" depends=(curl) name=httpup version=0.4.0k release=1 -source=(http://jw.tks6.net/files/crux/httpup-0.4.0k.tar.gz httpup) +source=(http://jw.tks6.net/files/crux/$name-$version.tar.gz httpup) build () { - cd $name-$version; - make; - mkdir -p $PKG/usr/{bin,man/man8}; - cp httpup httpup-repgen $PKG/usr/bin; - install -D -m 755 $SRC/httpup $PKG/etc/ports/drivers/httpup; - cp *.8 $PKG/usr/man/man8 + cd $name-$version; + sed -i -e "s|-Werror|$CFLAGS|" Makefile; + make; + mkdir -p $PKG/usr/{bin,share/man/man8}; + cp httpup httpup-repgen $PKG/usr/bin; + install -D -m 755 $SRC/httpup $PKG/etc/ports/drivers/httpup; + cp *.8 $PKG/usr/share/man/man8 } diff --git a/httpup/httpup b/httpup/httpup index 5c8db84..cdf15bc 100644 --- a/httpup/httpup +++ b/httpup/httpup @@ -4,24 +4,24 @@ # if [ $# -ne 1 ]; then - echo "usage: $0 <file>" >&2 - exit 1 + echo "usage: $0 <file>" >&2 + exit 1 fi . $1 if [ -z "$ROOT_DIR" ]; then - echo "ROOT_DIR not set in '$1'" >&2 + echo "\$ROOT_DIR not set in '$1'" >&2 exit 2 fi if [ -z "$URL" ]; then - echo "URL not set in '$1'" >&2 + echo "\$URL not set in '$1'" >&2 exit 2 fi for REPO in $URL; do - PORT=`echo $REPO | sed -n '/#.*$/s|^.*#||p'` - httpup sync $REPO $ROOT_DIR/$PORT + PORT=`echo $REPO | sed -n '/#.*$/s|^.*#||p'` + httpup sync $REPO $ROOT_DIR/$PORT done # End of file. |