wok-next annotate ndppd/receipt @ rev 20461
Respect "install" phase (src -> install). Cook will fail if install dir empty (and it's by design).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Mar 04 04:56:40 2018 +0200 (2018-03-04) |
parents | cd7c90022605 |
children | d43bf7aae921 |
rev | line source |
---|---|
pascal@18961 | 1 # SliTaz package receipt. |
pascal@18961 | 2 |
pascal@18961 | 3 PACKAGE="ndppd" |
pascal@18961 | 4 VERSION="0.2.4" |
pascal@18961 | 5 CATEGORY="network" |
pascal@18961 | 6 SHORT_DESC="NDP Proxy Daemon" |
pascal@18961 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18961 | 8 LICENSE="GPL3" |
pascal@18961 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@18961 | 10 WEB_SITE="https://github.com/DanielAdolfsson/ndppd" |
pascal@18961 | 11 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
pascal@18961 | 12 CONFIG_FILES="/etc/ndppd.conf" |
pascal@18961 | 13 TAGS="ipv6" |
pascal@18961 | 14 |
pascal@18961 | 15 DEPENDS="gcc-lib-base" |
pascal@18961 | 16 |
pascal@18961 | 17 # Rules to configure and make the package. |
pascal@18961 | 18 compile_rules() |
pascal@18961 | 19 { |
pascal@20335 | 20 sed -i 's| -1)| ~0U)|' src/iface.cc |
pascal@18961 | 21 sed -i 's|/usr/local|/usr|' Makefile |
pascal@18961 | 22 make all && |
pascal@18961 | 23 make DESTDIR=$DESTDIR install |
pascal@18961 | 24 } |
pascal@18961 | 25 |
pascal@18961 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18961 | 27 genpkg_rules() |
pascal@18961 | 28 { |
pascal@18961 | 29 mkdir -p $fs/etc $fs/usr |
pascal@18961 | 30 touch $fs/etc/ndppd.conf |
pascal@18961 | 31 cp -a $install/usr/sbin $fs/usr |
pascal@18961 | 32 } |