wok-next annotate n2nc/receipt @ rev 20597
lostirc: typo, `install -D` is enough.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Apr 16 22:03:47 2018 +0300 (2018-04-16) |
parents | e6615350078d |
children | 556349764d57 |
rev | line source |
---|---|
al@20513 | 1 # SliTaz package receipt v2. |
pascal@12973 | 2 |
pascal@12973 | 3 PACKAGE="n2nc" |
pascal@12973 | 4 VERSION="r_133" |
pascal@12973 | 5 CATEGORY="network" |
al@20513 | 6 SHORT_DESC="Nat 2 Nat COnnector" |
pascal@12973 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@20513 | 9 WEB_SITE="http://n2nc.sourceforge.net/" |
al@20513 | 10 |
pascal@12973 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@12973 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@12973 | 13 |
pascal@15643 | 14 BUILD_DEPENDS="bash openssl-dev bzip2-dev zlib-dev automake autoconf libtool" |
pascal@12973 | 15 |
al@20513 | 16 compile_rules() { |
pascal@20349 | 17 sed -i 's|<< std::cerr|<< std::endl|' src/examples/rsa.cpp src/rsa.cpp |
pascal@20335 | 18 sed -i 's|fcntl.h>|&\n#include <unistd.h>|' src/nixsys.h |
pascal@15341 | 19 libtoolize --force |
pascal@15341 | 20 aclocal |
pascal@15341 | 21 autoheader |
pascal@15341 | 22 automake --force-missing --add-missing |
pascal@15341 | 23 autoconf |
al@20513 | 24 ./configure \ |
al@20513 | 25 --prefix=/usr \ |
al@20513 | 26 --mandir=/usr/share/man \ |
pascal@12973 | 27 --localstatedir=/var \ |
al@20513 | 28 $CONFIGURE_ARGS && |
pascal@12973 | 29 make && |
pascal@12973 | 30 make DESTDIR=$DESTDIR install |
pascal@12973 | 31 } |
pascal@12973 | 32 |
al@20513 | 33 genpkg_rules() { |
al@20513 | 34 copy @std |
al@20513 | 35 DEPENDS="zlib openssl gcc-lib-base" |
pascal@12973 | 36 } |