wok-next annotate antinat/receipt @ rev 20569

Fix libtool where applicable (a*-f* packages yet); combine collectd* receipts
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 13 07:14:16 2018 +0300 (2018-04-13)
parents 757d032c55c7
children a918044cbc4c
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 &&
al@20569 20 fix libtool &&
pascal@14593 21 make &&
al@20534 22 make install || return 1
al@19265 23
al@19835 24 # make file readable for web interface, revert file permissions in post-install
al@19835 25 chmod a+r $install/etc/antinat.xml
pascal@14593 26 }
pascal@14593 27
al@20534 28 genpkg_rules() {
al@19835 29 case $PACKAGE in
al@19835 30 antinat)
al@19835 31 copy @std var/
al@19835 32 DEPENDS="expat"
al@19835 33 CONFIG_FILES="/etc/antinat.xml"
al@19835 34 ;;
al@19835 35 *-dev)
al@19835 36 copy @dev
al@19835 37 ;;
al@19835 38 esac
pascal@14593 39 }
al@19835 40
al@19835 41 post_install_antinat() {
al@19835 42 chmod 600 $1/etc/antinat.xml
al@19835 43 }