wok-next annotate antinat/receipt @ rev 19874
Add autoconf-archive; up hexchat.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Sep 29 04:22:40 2017 +0300 (2017-09-29) |
parents | 11b5e93cb5f2 |
children | 757d032c55c7 |
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 |
pascal@14593 | 18 # Rules to configure and make the package. |
pascal@14593 | 19 compile_rules() |
pascal@14593 | 20 { |
al@19835 | 21 ./configure \ |
al@19835 | 22 --sysconfdir=/etc \ |
al@19835 | 23 --localstatedir=/var \ |
al@19835 | 24 $CONFIGURE_ARGS && |
pascal@14593 | 25 make && |
al@19835 | 26 make install |
al@19265 | 27 |
al@19835 | 28 # make file readable for web interface, revert file permissions in post-install |
al@19835 | 29 chmod a+r $install/etc/antinat.xml |
pascal@14593 | 30 } |
pascal@14593 | 31 |
al@19265 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19265 | 33 genpkg_rules() |
pascal@14593 | 34 { |
al@19835 | 35 case $PACKAGE in |
al@19835 | 36 antinat) |
al@19835 | 37 copy @std var/ |
al@19835 | 38 DEPENDS="expat" |
al@19835 | 39 CONFIG_FILES="/etc/antinat.xml" |
al@19835 | 40 ;; |
al@19835 | 41 *-dev) |
al@19835 | 42 copy @dev |
al@19835 | 43 ;; |
al@19835 | 44 esac |
pascal@14593 | 45 } |
al@19835 | 46 |
al@19835 | 47 post_install_antinat() { |
al@19835 | 48 chmod 600 $1/etc/antinat.xml |
al@19835 | 49 } |