wok-6.x view partimage-pam/receipt @ rev 24495

updated dolibarr again (10.0.6 -> 14.0.5)
author Hans-G?nter Theisgen
date Sat Feb 19 13:42:19 2022 +0100 (2022-02-19)
parents 8dd8bab3f0ca
children 617f7ee416b1
line source
1 # SliTaz package receipt.
3 PACKAGE="partimage-pam"
4 VERSION="0.6.9"
5 CATEGORY="system-tools"
6 SHORT_DESC="Saves partitions in an image file."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="partimage"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.partimage.org/"
12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
13 PROVIDE="partimage:pam"
15 DEPENDS="newt bzip2 openssl slitaz-base-files zlib pam gcc-lib-base"
16 BUILD_DEPENDS="newt newt-dev slang-dev bzip2-dev openssl-dev pam pam-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/partimage/files/stable/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/stable/||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's/gzFile \*m_gzImageFile/gzFile m_gzImageFile/' src/client/imagefile.h
30 sed -i 's/(gzFile \*) gzdopen/gzdopen/' src/client/imagefile.cpp
31 ./configure \
32 --prefix=/usr \
33 --enable-pam \
34 --sysconfdir=/etc \
35 --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS &&
38 make &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr $fs/etc/init.d
46 cp -a $install/usr/sbin $fs/usr
47 cp -a $install/etc $fs/
48 install -g root -o root -m 0600 ../$SOURCE/stuff/etc/partimaged/partimaged.* $fs/etc/partimaged
49 install -g root -o root -m 0755 ../$SOURCE/stuff/etc/init.d/partimaged $fs/etc/init.d
50 }
52 post_install()
53 {
54 newline
55 echo "Adding user/group partimag..."
56 chroot "$1/" adduser -S -H -D partimag
58 echo "Setting permissions for config files"
59 chmod 0600 "$1"/etc/partimaged/*
60 chroot "$1/" chown partimag.partimag "$1"/etc/partimaged/*
62 echo "Creating image files directory"
63 chroot "$1/" install -g partimag -o partimag -m 0755 -d "$1/var/lib/partimaged"
65 echo ""
66 echo -e "\nTo starts $SOURCE server you can run :\n"
67 echo "/etc/init.d/partimaged start"
68 echo -e "Or add partimaged to RUN_DAEMONS in /etc/rcS.conf\n"
69 }
71 post_remove()
72 {
73 chroot "$1/" deluser partimag
74 chroot "$1/" delgroup partimag
76 if [ -f "$1/etc/paritimaged" ]; then
77 rm -rf "$1/etc/partimaged"
78 fi
79 }