wok view partimage/receipt @ rev 21311

3) libfm: up (1.3.1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 18 17:37:35 2019 +0300 (2019-04-18)
parents 6fab3264ba87
children 080c1dff8494
line source
1 # SliTaz package receipt.
3 PACKAGE="partimage"
4 VERSION="0.6.9"
5 CATEGORY="system-tools"
6 SHORT_DESC="Saves partitions in an image file."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.partimage.org/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="newt bzip2 openssl slitaz-base-files zlib gcc-lib-base"
14 BUILD_DEPENDS="newt newt-dev slang-dev bzip2-dev openssl-dev zlib-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i 's/gzFile \*m_gzImageFile/gzFile m_gzImageFile/' src/client/imagefile.h
20 sed -i 's/(gzFile \*) gzdopen/gzdopen/' src/client/imagefile.cpp
21 ./configure \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 --infodir=/usr/share/info \
25 --mandir=/usr/share/man $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr $fs/etc/init.d $fs/var/lib/partimaged
34 cp -a $install/usr/sbin $fs/usr
35 cp -a $install/etc $fs/
36 install -g root -o root -m 0600 stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
37 install -g root -o root -m 0755 stuff/etc/init.d/partimaged $fs/etc/init.d
38 }
40 post_install()
41 {
42 echo
43 echo "Adding user/group partimag..."
44 chroot "$1/" adduser -S -H -D partimag
46 echo "Setting permissions for config files"
47 chmod 0600 "$1"/etc/partimaged/*
48 chroot "$1/" chown partimag.partimag "$1"/etc/partimaged/*
50 echo "Creating image files directory"
51 chroot "$1/" install -g partimag -o partimag -m 0755 -d "$1/var/lib/partimaged"
53 echo ""
54 echo -e "\nTo starts $PACKAGE server you can run :\n"
55 echo "/etc/init.d/partimaged start"
56 echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
57 }
59 post_remove()
60 {
61 chroot "$1/" deluser partimag
62 chroot "$1/" delgroup partimag
64 if [ -f "$1/etc/paritimaged" ]; then
65 rm -rf "$1/etc/partimaged"
66 fi
67 }