# HG changeset patch # User Pascal Bellard # Date 1412696813 0 # Node ID 9911b9ad7712c46fb7bf6f5fd0a6a2570ce20e7a # Parent c92b838a23c520a1b52abebeea7d1bb4fd12da52 Add nzbget diff -r c92b838a23c5 -r 9911b9ad7712 nzbget-webui/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nzbget-webui/receipt Tue Oct 07 15:46:53 2014 +0000 @@ -0,0 +1,56 @@ +# SliTaz package receipt. + +PACKAGE="nzbget-webui" +VERSION="13.0" +CATEGORY="network" +SHORT_DESC="The most efficient usenet downloader, web user interface." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="GPL2" +WEB_SITE="http://nzbget.net/" + +WANTED="nzbget" +DEPENDS="nzbget" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/nzbget + cp -a $install/usr/share/nzbget/webui $fs/usr/share/nbzget +} + +post_install() +{ + # Configure lighttpd server + if [ -f $1/etc/lighttpd/lighttpd.conf ]; then + if ! grep -q /usr/share/nzbget/ $1/etc/lighttpd/lighttpd.conf; then + sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/nzbget/" => "/usr/share/nzbget/webui/",|g' -i $1/etc/lighttpd/lighttpd.conf + if [ -z "$1" ]; then + # Start Web server. + /etc/init.d/lighttpd stop + /etc/init.d/lighttpd start + fi + fi + fi + # Configure apache server + if [ -f $1/etc/apache/httpd.conf ]; then + if [ ! -f $1/etc/apache/conf.d/nzbget ]; then + cat > $1/etc/apache/conf.d/nzbget < + Alias /nzbget /usr/share/nzbget/webui + + + DirectoryIndex index.html + Options +FollowSymLinks + AllowOverride None + Order allow,deny + Allow from all + +EOT + if [ -z "$1" ]; then + # Start Web server. + /etc/init.d/apache stop + /etc/init.d/apache start + fi + fi + fi +} diff -r c92b838a23c5 -r 9911b9ad7712 nzbget/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nzbget/receipt Tue Oct 07 15:46:53 2014 +0000 @@ -0,0 +1,35 @@ +# SliTaz package receipt. + +PACKAGE="nzbget" +VERSION="13.0" +CATEGORY="network" +SHORT_DESC="The most efficient usenet downloader." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="GPL2" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://nzbget.net/" +WGET_URL="$SF_MIRROR/nzbget/nzbget-stable/$VERSION/$TARBALL" +CONFIG_FILES="/etc/nzbget.conf" + +DEPENDS="libxml2 libssl ncurses gcc-lib-base" +BUILD_DEPENDS="libxml2-dev openssl-dev ncurses-dev zlib-dev" + +# Rules to configure and make the package. +compile_rules() +{ + ./configure --prefix=/usr \ + --disable-parcheck \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/nzbget $fs/etc + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/sbin $fs/usr + cp -a $install/usr/share/nzbget/nzbget.conf $fs/etc + cp -a $install/usr/share/nzbget/scripts $fs/usr/share/nbzget +}