wok view n2nc/receipt @ rev 18472

ghostscript, libv4l, slitaz-base-files: fix installation (thanks llev)
ghostscript: fix package upgrades;
libv4l: check multiple preloads in case of upgrade, not add preload if installation not finished/fails;
slitaz-base-files: not to overwrite real sudo.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Oct 05 01:10:26 2015 +0300 (2015-10-05)
parents 6b9be4254023
children afae00265386
line source
1 # SliTaz package receipt.
3 PACKAGE="n2nc"
4 VERSION="r_133"
5 CATEGORY="network"
6 SHORT_DESC="Nat 2 Nat COnnector."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://n2nc.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="zlib libcrypto gcc-lib-base"
14 BUILD_DEPENDS="bash openssl-dev bzip2-dev zlib-dev automake autoconf libtool"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 mv $PACKAGE $src 2> /dev/null
20 cd $src
21 libtoolize --force
22 aclocal
23 autoheader
24 automake --force-missing --add-missing
25 autoconf
26 ./configure --prefix=/usr --mandir=/usr/share/man \
27 --localstatedir=/var \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/lib $fs/usr
39 }