diff --git a/srcpkgs/wgetpaste/files/wgetpaste.example b/srcpkgs/wgetpaste/files/wgetpaste.example new file mode 100644 index 00000000000..532f114e2a5 --- /dev/null +++ b/srcpkgs/wgetpaste/files/wgetpaste.example @@ -0,0 +1,17 @@ +#!/bin/bash + +# add this to /etc/wgetpaste.conf or ~/.wgetpaste.conf to set some defaults + +# set default nick +DEFAULT_NICK=zlin + +# change the default service +DEFAULT_SERVICE="zlin" + +# change default language for the ca and the osl services +DEFAULT_LANGUAGE_ca="Bash" +DEFAULT_LANGUAGE_osl="Diff" + +# change default expiration period for the ca service +DEFAULT_EXPIRATION_ca="1 week" + diff --git a/srcpkgs/wgetpaste/template b/srcpkgs/wgetpaste/template new file mode 100644 index 00000000000..8552cc3f884 --- /dev/null +++ b/srcpkgs/wgetpaste/template @@ -0,0 +1,26 @@ +# Template file for 'wgetpaste' +pkgname=wgetpaste +version=2.18 +distfiles="http://wgetpaste.zlin.dk/$pkgname-$version.tar.bz2" +build_style=custom-install +short_desc="A script that automates pasting to a number of pastebin services" +maintainer="Robert Djubek " +homepage="http://wgetpaste.zlin.dk/" +license="Public domain" +checksum=95ee46eac37ca74ce960c1726afc19f4a1dde4d1875ac860fdc5e45d3cb05d3e +long_desc=" + A script that automates pasting to a number of pastebin services" + +Add_dependency full bash +Add_dependency full wget +Add_dependency full sed + +do_install() +{ + install -Dm755 ${pkgname} ${DESTDIR}/usr/bin/${pkgname} + install -Dm644 _${pkgname} ${DESTDIR}/usr/share/zsh/site-functions/_${pkgname} + install -Dm644 ${FILESDIR}/${pkgname}.example \ + ${DESTDIR}/usr/share/${pkgname}/${pkgname}.example + sed -n '2,5p' ${pkgname} > LICENSE + install -Dm644 LICENSE ${DESTDIR}/usr/share/licenses/${pkgname}/LICENSE +}