wok-next annotate antinat/receipt @ rev 20959

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