wok annotate vpnc-cert/receipt @ rev 24010
created recipes for diffuse and diffuse-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jan 30 17:26:17 2021 +0100 (2021-01-30) |
parents | a78610b2eb47 |
children | 34e801e0eb52 |
rev | line source |
---|---|
pascal@13516 | 1 # SliTaz package receipt. |
pascal@13516 | 2 |
pascal@13516 | 3 PACKAGE="vpnc-cert" |
pascal@13517 | 4 SOURCE="vpnc" |
pascal@13517 | 5 VERSION="0.5.3" |
pascal@13516 | 6 CATEGORY="network" |
pascal@13516 | 7 SHORT_DESC="VPN client compatible with Cisco's EasyVPN equipment." |
pascal@13516 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15002 | 9 LICENSE="GPL2" |
pascal@13517 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@21792 | 11 WEB_SITE="https://github.com/streambinder/vpnc" |
pascal@13516 | 12 WGET_URL="$WEB_SITE$TARBALL" |
pascal@13516 | 13 CONFIG_FILES="/etc/vpnc" |
pascal@13516 | 14 TAGS="vpn tunnel" |
pascal@17482 | 15 PROVIDE="vpnc" |
pascal@13516 | 16 |
pascal@13516 | 17 DEPENDS="libgcrypt libgpg-error glibc-base perl libcrypto" |
pascal@13516 | 18 BUILD_DEPENDS="libgcrypt-dev openssl-dev" |
pascal@13516 | 19 |
pascal@13516 | 20 # Rules to configure and make the package. |
pascal@13516 | 21 compile_rules() |
pascal@13516 | 22 { |
pascal@13516 | 23 sed -i 's|^#OPENSSL|OPENSSL|' Makefile # breaks GPL license |
pascal@13516 | 24 sed -i "s|perl -w .*|&\\n sed -i '/Automatically/,\$\$!d' vpnc-debug.h|" Makefile |
pascal@13516 | 25 make && make DESTDIR=$DESTDIR install |
pascal@19369 | 26 install -d -m 755 $DESTDIR/usr/share/man/man1 && |
pascal@19369 | 27 install -d -m 755 $DESTDIR/usr/share/man/man8 && |
pascal@19369 | 28 install -d -m 755 $DESTDIR/usr/share/doc && |
pascal@19371 | 29 install -m 644 $src/*.1 $DESTDIR/usr/share/man/man1 && |
pascal@19371 | 30 install -m 644 $src/*.8 $DESTDIR/usr/share/man/man8 && |
pascal@19371 | 31 install -m 644 $src/[A-Z][A-Z]* $src/C* $DESTDIR/usr/share/doc |
pascal@13516 | 32 } |
pascal@13516 | 33 |
pascal@13516 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13516 | 35 genpkg_rules() |
pascal@13516 | 36 { |
pascal@13516 | 37 mkdir -p $fs/usr $fs/var/run/vpnc |
pascal@13516 | 38 cp -a $install/etc $fs |
pascal@13516 | 39 cp -a $install/usr/local/bin $fs/usr |
pascal@13516 | 40 cp -a $install/usr/local/sbin $fs/usr |
pascal@13516 | 41 sed -i 's|/usr/local/|/usr/|g' $fs/etc/vpnc/vpnc-script |
pascal@13516 | 42 } |
pascal@13516 | 43 |
pascal@13516 | 44 # Pre and post install commands for Tazpkg. |
pascal@13516 | 45 post_install() |
pascal@13516 | 46 { |
pascal@13516 | 47 cat <<EOT |
pascal@13516 | 48 ------------- |
pascal@13516 | 49 You can now update /etc/vpnc/default.conf |
pascal@13516 | 50 ------------- |
pascal@13516 | 51 EOT |
pascal@13516 | 52 } |