wok-current view srcpd/receipt @ rev 5295
openssh*: fix genpkg_rules
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 18 23:05:05 2010 +0200 (2010-04-18) |
parents | |
children | e6b3a61b9f9a |
line source
1 # SliTaz package receipt.
3 PACKAGE="srcpd"
4 VERSION="2.0.12"
5 CATEGORY="games"
6 SHORT_DESC="Simple Railroad Command Protocl Daemon."
7 MAINTAINER="rcx@zoominternet.net"
8 DEPENDS="glibc-base libxml2 zlib"
9 BUILD_DEPENDS="slitaz-toolchain libxml2-dev zlib-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://srcpd.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 CONFIG_FILES="/etc/srcpd.conf"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 # Remove include that cause SliTaz builds to fail.
20 sed -i 's:#include <linux/serial.h>::' \
21 $src/src/li100-main.c || exit 1
22 sed -i 's:#include <sys/io.h>::' \
23 $src/src/li100-main.c || exit 1
25 ./configure \
26 --prefix=/usr \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 --sysconfdir=/etc \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $_pkg/usr/sbin $fs/usr
40 cp -a $_pkg/etc $fs
41 }