wok view gpm/receipt @ rev 13945
gpm: add post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 29 11:17:09 2013 +0100 (2013-01-29) |
parents | 3bf8d473ac5d |
children | 5ea9ca3cd82e |
line source
1 # SliTaz package receipt.
3 PACKAGE="gpm"
4 VERSION="1.20.6"
5 CATEGORY="misc"
6 SHORT_DESC="Mouse server for console."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.nico.schottelius.org/software/gpm/"
10 WGET_URL="http://www.nico.schottelius.org/software/gpm/archives/$TARBALL"
11 HOST_ARCH="i486 arm"
13 DEPENDS="ncurses"
14 BUILD_DEPENDS="gawk bison"
16 # When cross compiling gawk and bison build system are used.
17 case "$ARCH" in
18 arm) BUILD_DEPENDS="" ;;
19 esac
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 ./configure \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 $CONFIGURE_ARGS &&
29 make && make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 cp -a $install/usr/sbin $fs/usr
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
38 cp -a $stuff/* $fs
39 }
41 # Pre and post install commands for Tazpkg.
42 pre_remove()
43 {
44 [ -n "$1" ] || /etc/init.d/gpm stop
45 }
47 post_install()
48 {
49 [ -n "$1" ] || /etc/init.d/gpm start
50 }