wok-current rev 15214

nbd: add config file
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 13 12:30:04 2013 +0000 (2013-09-13)
parents c87b3aca9438
children 7bb096863642
files nbd/receipt
line diff
     1.1 --- a/nbd/receipt	Fri Sep 13 12:21:17 2013 +0000
     1.2 +++ b/nbd/receipt	Fri Sep 13 12:30:04 2013 +0000
     1.3 @@ -10,6 +10,7 @@
     1.4  WEB_SITE="http://nbd.sourceforge.net/"
     1.5  WGET_URL="$SF_MIRROR/nbd/$TARBALL"
     1.6  SUGGESTED="linux-nbd"
     1.7 +CONFIG_FILES="/etc/nbd-server"
     1.8  
     1.9  DEPENDS="glib pcre"
    1.10  BUILD_DEPENDS="pkg-config glib-dev pcre-dev"
    1.11 @@ -18,7 +19,7 @@
    1.12  compile_rules()
    1.13  {
    1.14  	cd $src
    1.15 -	./configure --prefix=/usr $CONFIGURE_ARGS &&
    1.16 +	./configure --sysconfdir=/etc --prefix=/usr $CONFIGURE_ARGS &&
    1.17  	make &&
    1.18  	make DESTDIR=$DESTDIR install
    1.19  }
    1.20 @@ -26,7 +27,8 @@
    1.21  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.22  genpkg_rules()
    1.23  {
    1.24 -	mkdir -p $fs/usr
    1.25 +	mkdir -p $fs/usr $fs/etc/nbd-server
    1.26  	cp -a $install/usr/bin $fs/usr
    1.27  	cp -a $install/usr/sbin $fs/usr
    1.28 +	touch $fs/etc/nbd-server/config
    1.29  }