wok-next view partimage/receipt @ rev 20785

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents 757d032c55c7
children d5aab818505e
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://www.partimage.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="gettext newt newt-dev slang-dev bzip2-dev openssl-dev zlib-dev \
15 pam-dev"
16 SPLIT="partimage partimage-pam:pam"
18 compile_rules() {
19 sed -i 's/CRYPTO_lock/X509_new/g' configure
21 case $SET in
22 '')
23 ./configure \
24 --disable-pam \
25 $CONFIGURE_ARGS &&
26 make &&
27 make install
28 ;;
29 pam)
30 ./configure \
31 --enable-pam \
32 $CONFIGURE_ARGS &&
33 make &&
34 make pamfile &&
35 make install &&
36 install -Dm644 partimaged.pam $install/etc/pam.d/partimaged
37 ;;
38 esac || return 1
40 install -Dm600 $stuff/etc/partimaged/partimaged.cert $install/etc/partimaged/partimaged.cert
41 install -Dm600 $stuff/etc/partimaged/partimaged.key $install/etc/partimaged/partimaged.key
42 install -Dm755 $stuff/etc/init.d/partimaged $install/etc/init.d/partimaged
44 mkdir -p $install/var/lib/partimaged/
45 }
47 genpkg_rules() {
48 copy @std
49 case $PACKAGE in
50 partimage)
51 DEPENDS="bzlib newt openssl slang zlib"
52 ;;
53 partimage-pam)
54 CAT="system-tools|using PAM"
55 PROVIDE="partimage:pam"
56 DEPENDS="bzlib newt openssl pam slang zlib"
57 ;;
58 esac
59 }
61 # The same post-install/remove rules for both PAM/non-PAM packages
63 post_install() {
64 # Adding user/group partimag...
65 chroot "$1/" adduser -S -H -D partimag
67 # Setting permissions for config files
68 chmod 0600 "$1"/etc/partimaged/*
69 chroot "$1/" chown partimag.partimag "$1"/etc/partimaged/*
71 # Creating image files directory
72 chroot "$1/" install -g partimag -o partimag -m 0755 -d "$1/var/lib/partimaged"
74 [ -n "$quiet" ] || cat <<EOT
76 .---------------------------------------------------.
77 | To starts partimage server you can run: |
78 | /etc/init.d/partimaged start |
79 | |
80 | Or add partimaged to RUN_DAEMONS in /etc/rcS.conf |
81 '---------------------------------------------------'
82 EOT
83 }
85 post_remove() {
86 chroot "$1/" deluser partimag
87 chroot "$1/" delgroup partimag
89 if [ -f "$1/etc/paritimaged" ]; then
90 rm -rf "$1/etc/partimaged"
91 fi
92 }