# HG changeset patch # User Pascal Bellard # Date 1550231471 -3600 # Node ID 6bd67b683b9c5cd6e41b5982b454b017d3da9b4a # Parent 8685ee90f6aad86472c2025939de9520164efdb8 Add ifplugd & netplug diff -r 8685ee90f6aa -r 6bd67b683b9c ifplugd/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ifplugd/receipt Fri Feb 15 12:51:11 2019 +0100 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="ifplugd" +VERSION="0.28" +CATEGORY="network" +SHORT_DESC="Configure your ethernet device when a cable is plugged" +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="GPL2" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://0pointer.de/lennart/projects/ifplugd/" +WGET_URL="${WEB_SITE}$TARBALL" + +BUILD_DEPENDS="libdaemon-dev" + +# Rules to configure and make the package. +compile_rules() +{ + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --disable-lynx \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $install/usr/sbin $fs/usr + cp -a $install/etc $fs + sed -i 's|/bin/bash|/bin/sh|' $fs/etc/init.d/ifplugd +} diff -r 8685ee90f6aa -r 6bd67b683b9c libdaemon-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libdaemon-dev/receipt Fri Feb 15 12:51:11 2019 +0100 @@ -0,0 +1,21 @@ +# SliTaz package receipt. + +PACKAGE="libdaemon-dev" +VERSION="0.14" +CATEGORY="development" +SHORT_DESC="A lightweight C library that eases the writing of UNIX daemons, development tools" +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="LGPL2.1" +WEB_SITE="http://0pointer.de/lennart/projects/libdaemon/" +WANTED="libdaemon" + +DEPENDS="libdaemon pkg-config" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/*a $fs/usr/lib + cp -a $install/usr/lib/pkgconfig $fs/usr/lib + cp -a $install/usr/include $fs/usr +} diff -r 8685ee90f6aa -r 6bd67b683b9c libdaemon/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libdaemon/receipt Fri Feb 15 12:51:11 2019 +0100 @@ -0,0 +1,27 @@ +# SliTaz package receipt. + +PACKAGE="libdaemon" +VERSION="0.14" +CATEGORY="system-tools" +SHORT_DESC="A lightweight C library that eases the writing of UNIX daemons" +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="LGPL2.1" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://0pointer.de/lennart/projects/libdaemon/" +WGET_URL="${WEB_SITE}$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + ./configure --prefix=/usr \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/*.so* $fs/usr/lib +} diff -r 8685ee90f6aa -r 6bd67b683b9c netplug/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/netplug/receipt Fri Feb 15 12:51:11 2019 +0100 @@ -0,0 +1,28 @@ +# SliTaz package receipt. + +PACKAGE="netplug" +VERSION="1.2.9.2" +CATEGORY="network" +SHORT_DESC="A daemon that manages network interfaces plugs in and out." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="GPL2" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://www.serpentine.com/blog/software/netplug/" +WGET_URL="http://www.red-bean.com/~bos/netplug/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + sed -i '/hg_root/,$d' Makefile + make prefix=/usr netplugd && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir $fs/etc + cp -a $install/etc/rc.d/init.d $fs/etc + cp -a $install/etc/netp* $fs + cp -a $install/sbin $fs +}