add httpup port
This commit is contained in:
parent
b855e8929e
commit
4a10c3c607
3 changed files with 50 additions and 0 deletions
|
@ -5,6 +5,7 @@ d:intltool
|
||||||
d:shadow
|
d:shadow
|
||||||
d:mpc
|
d:mpc
|
||||||
d:kmod
|
d:kmod
|
||||||
|
d:httpup
|
||||||
d:gcc
|
d:gcc
|
||||||
d:xz
|
d:xz
|
||||||
d:man-db
|
d:man-db
|
||||||
|
@ -108,6 +109,8 @@ f:5f582ebf3914ae0277c5738cd2917f75:shadow/Pkgfile
|
||||||
f:babefc326b69e5c23dec019e1f664c3b:shadow/post-install
|
f:babefc326b69e5c23dec019e1f664c3b:shadow/post-install
|
||||||
f:38fd4e9168d49ab7e0bbd1144f4f231a:mpc/Pkgfile
|
f:38fd4e9168d49ab7e0bbd1144f4f231a:mpc/Pkgfile
|
||||||
f:da2528d85a28de6a07281d635b142c58:kmod/Pkgfile
|
f:da2528d85a28de6a07281d635b142c58:kmod/Pkgfile
|
||||||
|
f:faa600a1b0349fe78b0eb463cab444df:httpup/httpup
|
||||||
|
f:9b636f89d1520d4036b832a430bc6d33:httpup/Pkgfile
|
||||||
f:5f96bb0e73567985ffc919f7c2e7213f:gcc/Pkgfile
|
f:5f96bb0e73567985ffc919f7c2e7213f:gcc/Pkgfile
|
||||||
f:638d339a29abe3cce8c9c920a36d5125:xz/Pkgfile
|
f:638d339a29abe3cce8c9c920a36d5125:xz/Pkgfile
|
||||||
f:f5625811c2c785ba538a7ed60122039e:man-db/Pkgfile
|
f:f5625811c2c785ba538a7ed60122039e:man-db/Pkgfile
|
||||||
|
|
20
ports/core/httpup/Pkgfile
Executable file
20
ports/core/httpup/Pkgfile
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
# Description: One way sync over http
|
||||||
|
# URL: https://github.com/winkj/httpup
|
||||||
|
# Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com
|
||||||
|
# Depends on: curl
|
||||||
|
|
||||||
|
name=httpup
|
||||||
|
version=0.5.0
|
||||||
|
release=1
|
||||||
|
source=(https://crux.nu/files/$name-$version.tar.xz
|
||||||
|
httpup)
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $name-$version
|
||||||
|
|
||||||
|
make
|
||||||
|
make DESTDIR=$PKG prefix=/usr mandir=/usr/share/man install
|
||||||
|
|
||||||
|
# driver
|
||||||
|
install -Dm755 $SRC/httpup $PKG/etc/ports/drivers/httpup
|
||||||
|
}
|
27
ports/core/httpup/httpup
Executable file
27
ports/core/httpup/httpup
Executable file
|
@ -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.
|
Loading…
Add table
Reference in a new issue