wok-next view nzbget/receipt @ rev 21712
updated gsoap (2.8.96 -> 2.8.104)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 06 16:25:56 2020 +0100 (2020-07-06) |
parents | d457c4e37c1b |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="nzbget"
4 VERSION="21.0"
5 CATEGORY="network"
6 SHORT_DESC="The most efficient usenet downloader"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://nzbget.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="libxml2-dev ncurses-dev openssl-dev zlib-dev"
15 SPLIT="$PACKAGE-webui $PACKAGE"
17 compile_rules()
18 {
19 ./configure \
20 --disable-parcheck \
21 $CONFIGURE_ARGS &&
22 make &&
23 make -j1 DESTDIR=$install install || return 1
25 mkdir -p $install/etc/
26 mv $install/usr/share/nzbget/nzbget.conf $install/etc/
27 }
29 genpkg_rules()
30 {
31 case $PACKAGE in
32 nzbget-webui)
33 copy usr/share/nzbget/webui/
34 CAT="network|web user interface"
35 DEPENDS="nzbget"
36 ;;
37 nzbget)
38 copy @std @rm
39 DEPENDS="gcc-lib-base libxml2 ncurses openssl"
40 CONFIG_FILES="/etc/nzbget.conf"
41 ;;
42 esac
43 }
45 post_install_nzbget_webui()
46 {
47 # Configure lighttpd server
48 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
49 then
50 if ! grep -q /usr/share/nzbget/ "$1/etc/lighttpd/lighttpd.conf"
51 then
52 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/nzbget/" => "/usr/share/nzbget/webui/",|g' \
53 -i "$1/etc/lighttpd/lighttpd.conf"
54 if [ -z "$1" ]
55 then
56 # Start Web server.
57 /etc/init.d/lighttpd stop
58 /etc/init.d/lighttpd start
59 fi
60 fi
61 fi
62 # Configure apache server
63 if [ -f "$1/etc/apache/httpd.conf" ]
64 then
65 if [ ! -f "$1/etc/apache/conf.d/nzbget" ]
66 then
67 cat > "$1/etc/apache/conf.d/nzbget" <<EOT
68 <IfModule mod_alias.c>
69 Alias /nzbget /usr/share/nzbget/webui
70 </IfModule>
71 <Directory /usr/share/nzbget/webui/>
72 DirectoryIndex index.html
73 Options +FollowSymLinks
74 AllowOverride None
75 Order allow,deny
76 Allow from all
77 </Directory>
78 EOT
79 if [ -z "$1" ]
80 then
81 # Start Web server.
82 /etc/init.d/apache stop
83 /etc/init.d/apache start
84 fi
85 fi
86 fi
87 }