wok-next annotate antinat/receipt @ rev 20534

Clean default configure options when site script used.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 30 19:31:50 2018 +0300 (2018-03-30)
parents 38cf0c75fa4c
children 835b3b8ce6ac
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="$SF_MIRROR/$PACKAGE/$TARBALL"
al@19835 13 WGET_URL="http://www.malsmith.net/download/?obj=antinat/$VERSION/antinat-source.tar.bz2"
pascal@14593 14
al@19835 15 BUILD_DEPENDS="gfortran expat-dev"
al@19835 16 SPLIT="antinat-dev"
pascal@14593 17
al@20534 18 compile_rules() {
al@20534 19 ./configure $CONFIGURE_ARGS &&
pascal@14593 20 make &&
al@20534 21 make install || return 1
al@19265 22
al@19835 23 # make file readable for web interface, revert file permissions in post-install
al@19835 24 chmod a+r $install/etc/antinat.xml
pascal@14593 25 }
pascal@14593 26
al@20534 27 genpkg_rules() {
al@19835 28 case $PACKAGE in
al@19835 29 antinat)
al@19835 30 copy @std var/
al@19835 31 DEPENDS="expat"
al@19835 32 CONFIG_FILES="/etc/antinat.xml"
al@19835 33 ;;
al@19835 34 *-dev)
al@19835 35 copy @dev
al@19835 36 ;;
al@19835 37 esac
pascal@14593 38 }
al@19835 39
al@19835 40 post_install_antinat() {
al@19835 41 chmod 600 $1/etc/antinat.xml
al@19835 42 }