wok view foomatic-db-nonfree/receipt @ rev 20562
xv: race condition
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 12 21:33:25 2018 +0100 (2018-12-12) |
parents | dfef8de3d270 |
children | bfabe25c21ff |
line source
1 # SliTaz package receipt.
3 PACKAGE="foomatic-db-nonfree"
4 VERSION="20101114"
5 CATEGORY="system-tools"
6 SHORT_DESC="database engine generates PPD files from the data in Foomatic's XML database"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="other"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.linuxprinting.org/foomatic.html"
11 WGET_URL="http://www.openprinting.org/download/foomatic/$TARBALL"
12 TAGS="printer driver printing"
14 DEPENDS="perl libxml2 foomatic-db"
15 BUILD_DEPENDS="ghostscript-dev cups-dev perl libxml2-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share/licenses/$PACKAGE/
34 cp -a $install/usr/share/foomatic $fs/usr/share
36 # gzip all ppd files
37 find $fs/usr/share/foomatic/db/source -name "*.ppd" | xargs gzip -n9
39 # include non-free license
40 cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE/
42 }
44 pre_install()
45 {
46 echo ""
47 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2"
48 echo "================================================================================"
49 echo "You are installing a package with proprietary license."
50 echo "You must accept the license."
51 echo "================================================================================"
52 echo ""
54 }
56 post_install()
57 {
58 echo ""
59 echo -e "\033[1m FOOMATIC NON-FREE PRINTING LICENSE INFORMATION:\033[0m $2"
60 echo "================================================================================"
61 echo "For installing this package, you have to accept the $PACKAGE license."
62 echo "The license is stored in /usr/share/licenses/$PACKAGE "
63 echo -n "Would you like to read the license (y/N) : "; read anser
64 if [ "$anser" = "y" ]; then
65 more < "$1/usr/share/licenses/$PACKAGE/COPYING"
66 echo ""
67 fi
68 echo "================================================================================"
69 echo -n "Do you accept the license (y/N) : "; read anser
70 if [ "$anser" = "N" ]; then
71 echo "You did not accept the license, Removing the pkg."
72 chroot "$1/" tazpkg remove "$PACKAGE"
73 fi
74 }