wok-next view enlightenment-pam/receipt @ rev 10430
openldap: use openssl for tls and clean receipt
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 25 00:04:49 2011 +0200 (2011-05-25) |
parents | d1768332cee0 |
children | eb4bf553e6b6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="enlightenment-pam"
4 SOURCE="enlightenment"
5 VERSION="0.16.999.55225"
6 CATEGORY="x-window"
7 SHORT_DESC="Enlightenment window manager (E17)."
8 MAINTAINER="pankso@slitaz.org"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.enlightenment.org/"
11 WGET_URL="http://download.enlightenment.org/snapshots/2010-12-03/$TARBALL"
12 PROVIDE="enlightenment:pam"
14 DEPENDS="alsa-lib edbus edje efreet pam"
15 BUILD_DEPENDS="eet-dev evas-dev ecore-dev embryo-dev edje-dev efreet-dev \
16 efreet edbus-dev edbus curl-dev libcrypto-dev openssl-dev fribidi-dev \
17 xorg-libXp-dev pam-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 ./configure $CONFIGURE_ARGS &&
24 make && make install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/lib $fs/usr/share
31 # Use a modified sysactions.conf
32 cp -a $WOK/$SOURCE/stuff/etc $fs
34 cp -a $_pkg/usr/bin $fs/usr
35 cp -a $_pkg/usr/lib/enlightenment $fs/usr/lib
36 cp -a $_pkg/usr/share/enlightenment $fs/usr/share
38 # Remove devel files *.a/*.la
39 rm -rf $fs/usr/lib/$SOURCE/preload/*.*a
40 rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a
42 # Rm backgrouds (1,6 Mb) and desktop file already provides by other.
43 rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
44 rm $fs/usr/share/enlightenment/data/other/desktop_files*
45 }
47 post_install()
48 {
49 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
50 # Adding WM to SLIM available sessions.
51 if ! echo "$res" | grep -q e17; then
52 echo -n "Adding e17 to /etc/slim.conf..."
53 sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf
54 status
55 fi
56 }
58 post_remove()
59 {
60 # Remove WM from SLIM available sessions.
61 if grep -q e17 $1/etc/slim.conf; then
62 sed -i s/,e17// $1/etc/slim.conf
63 fi
64 }