summaryrefslogtreecommitdiff
path: root/httpup
diff options
context:
space:
mode:
authorJohannes Winkelmann <jw@smts.ch>2006-02-23 15:26:10 +0000
committerJohannes Winkelmann <jw@smts.ch>2006-02-23 15:26:10 +0000
commite3afe2298e821d7f5860128720e665d8fb3bd641 (patch)
treebfb499432688352b1140b13ad8252c8e4e739006 /httpup
downloadcore-e3afe2298e821d7f5860128720e665d8fb3bd641.tar.gz
core-e3afe2298e821d7f5860128720e665d8fb3bd641.tar.xz
create branch for 2.2
Diffstat (limited to 'httpup')
-rw-r--r--httpup/.footprint12
-rw-r--r--httpup/.md5sum2
-rw-r--r--httpup/Pkgfile19
-rw-r--r--httpup/httpup27
4 files changed, 60 insertions, 0 deletions
diff --git a/httpup/.footprint b/httpup/.footprint
new file mode 100644
index 00000000..52179d33
--- /dev/null
+++ b/httpup/.footprint
@@ -0,0 +1,12 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/ports/
+drwxr-xr-x root/root etc/ports/drivers/
+-rwxr-xr-x root/root etc/ports/drivers/httpup
+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
diff --git a/httpup/.md5sum b/httpup/.md5sum
new file mode 100644
index 00000000..ac7d42cb
--- /dev/null
+++ b/httpup/.md5sum
@@ -0,0 +1,2 @@
+faa600a1b0349fe78b0eb463cab444df httpup
+0c34610acd857265cf259cd7402ca306 httpup-0.4.0g.tar.gz
diff --git a/httpup/Pkgfile b/httpup/Pkgfile
new file mode 100644
index 00000000..913ab409
--- /dev/null
+++ b/httpup/Pkgfile
@@ -0,0 +1,19 @@
+# Maintainer: Johannes Winkelmann, jw at tks6 dot net
+# Description: One way sync over http
+# URL: http://jw.tks6.net/files/crux/httpup_manual.html
+# Depends on: curl
+
+name=httpup
+version=0.4.0g
+release=1
+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
+}
diff --git a/httpup/httpup b/httpup/httpup
new file mode 100644
index 00000000..5c8db841
--- /dev/null
+++ b/httpup/httpup
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# /etc/ports/drivers/httpup: httpup driver script for ports(8)
+#
+
+if [ $# -ne 1 ]; then
+ echo "usage: $0 <file>" >&2
+ exit 1
+fi
+
+. $1
+
+if [ -z "$ROOT_DIR" ]; then
+ echo "ROOT_DIR not set in '$1'" >&2
+ exit 2
+fi
+if [ -z "$URL" ]; then
+ 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
+done
+
+# End of file.

Generated by cgit