wok-next view antinat/receipt @ rev 21634
updated exiftool (11.17 -> 12.01)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 26 10:45:57 2020 +0100 (2020-06-26) |
parents | a918044cbc4c |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="antinat"
4 VERSION="0.91"
5 CATEGORY="network"
6 SHORT_DESC="Flexible SOCKS server & client library for proxy-based applications"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.malsmith.net/antinat/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://www.malsmith.net/download/?obj=antinat/$VERSION/antinat-source.tar.bz2"
14 BUILD_DEPENDS="gfortran expat-dev pam-dev"
15 SPLIT="libantinat $PACKAGE $PACKAGE-dev $PACKAGE-pam:pam $PACKAGE-pam-dev:pam"
17 compile_rules() {
18 case $SET in
19 '') SET_ARGS='--disable-pam'; SET_CMD='s|#define ENABLE_PAM 1|#undef ENABLE_PAM|';;
20 pam) SET_ARGS='--enable-pam'; SET_CMD='';;
21 esac
23 export shrext_cmds='.so' # shared libs lost their suffix without this
24 ./configure \
25 $SET_ARGS \
26 $CONFIGURE_ARGS &&
27 sed -i "$SET_CMD" config.h &&
28 fix libtool &&
29 make &&
30 make install || return 1
32 # make file readable for web interface, revert file permissions in post-install
33 chmod a+r $install/etc/antinat.xml $install/etc/pam.d/antinat
34 }
36 genpkg_rules() {
37 case $PACKAGE in
39 # common (pam and non-pam) libs
40 libantinat)
41 copy libantinat.so*
42 CAT="libs|client library"
43 ;;
45 # non-pam
46 antinat)
47 copy bin/antinat antinat.xml var/
48 DEPENDS="expat libantinat"
49 CONFIG_FILES="/etc/antinat.xml"
50 ;;
51 antinat-dev)
52 copy @dev
53 DEPENDS="antinat"
54 ;;
56 # pam
57 antinat-pam)
58 copy bin/antinat antinat.xml var/ pam.d/
59 DEPENDS="expat libantinat pam"
60 CONFIG_FILES="/etc/antinat.xml"
61 CAT="network|using PAM"
62 PROVIDE="antinat:pam"
63 ;;
64 antinat-pam-dev)
65 copy @dev
66 DEPENDS="antinat-pam"
67 CAT="development|development files using PAM"
68 PROVIDE="antinat-dev:pam"
69 ;;
70 esac
71 }
73 post_install_antinat() {
74 chmod 600 $1/etc/antinat.xml
75 }
76 post_install_antinat_pam() {
77 chmod 600 $1/etc/antinat.xml $1/etc/pam.d/antinat
78 }