forked from ports/contrib
25 lines
714 B
Plaintext
25 lines
714 B
Plaintext
# Description: Pipe commands to a pastebin site.
|
|
# URL: http://wgetpaste.zlin.dk/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Packager: Danny Rawlins, crux at romster dot me
|
|
|
|
name=wgetpaste
|
|
version=2.28
|
|
release=1
|
|
source=(http://wgetpaste.zlin.dk/$name-$version.tar.bz2
|
|
http://wgetpaste.zlin.dk/zlin.conf)
|
|
|
|
build() {
|
|
# adjust including files as per http://wgetpaste.zlin.dk/inst.bash
|
|
cd $name-$version
|
|
install -d $PKG/usr/bin $PKG/usr/etc/wgetpaste.d
|
|
|
|
cat wgetpaste _wgetpaste \
|
|
| sed 's|for f in {/etc/|for f in {/usr/etc/|' \
|
|
| sed 's|/etc/wgetpaste.d|/usr/etc/wgetpaste.d|' \
|
|
> $PKG/usr/bin/wgetpaste
|
|
|
|
install -m 0644 $SRC/zlin.conf $PKG/usr/etc/wgetpaste.d
|
|
chmod +x $PKG/usr/bin/wgetpaste
|
|
}
|