summaryrefslogtreecommitdiff
path: root/wgetpaste/Pkgfile
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2011-04-13 21:19:47 +1000
committerDanny Rawlins <monster.romster@gmail.com>2011-04-13 21:19:47 +1000
commit067deb5a505a44490aa18193d0053d39a302100c (patch)
tree893e4b7b3213cfbfecf8e29dac14703180fbd756 /wgetpaste/Pkgfile
parent7a72be0acc950455ec3cc5e788a3ee45028e0cbc (diff)
downloadcontrib-067deb5a505a44490aa18193d0053d39a302100c.tar.gz
contrib-067deb5a505a44490aa18193d0053d39a302100c.tar.xz
wgetpaste: add userconfig directory and zlin.dk service, thanks sepen
Diffstat (limited to 'wgetpaste/Pkgfile')
-rw-r--r--wgetpaste/Pkgfile17
1 files changed, 12 insertions, 5 deletions
diff --git a/wgetpaste/Pkgfile b/wgetpaste/Pkgfile
index 31c5bc88a..1441857bf 100644
--- a/wgetpaste/Pkgfile
+++ b/wgetpaste/Pkgfile
@@ -1,17 +1,24 @@
-# Description: Pipe commands to paste to a site.
+# Description: Pipe commands to a pastebin site.
# URL: http://wgetpaste.zlin.dk/
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Danny Rawlins, monster dot romster at gmail dot com
name=wgetpaste
version=2.18
-release=1
-source=(http://wgetpaste.zlin.dk/$name-$version.tar.bz2)
+release=2
+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
- cat wgetpaste _wgetpaste > $PKG/usr/bin/wgetpaste
+ 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
}

Generated by cgit