wok view vim/receipt @ rev 8894

Made lighttpd and lighttpd-ssl only backup vhosts.conf and lighttpd.conf in /etc/lighttpd folder. Doesn't need to backup full /etc/lighttpd folder cause only those files would be affected.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Feb 27 13:44:14 2011 +0000 (2011-02-27)
parents 403fb8adf07d
children ab3455634715
line source
1 # SliTaz package receipt.
3 PACKAGE="vim"
4 VERSION="7.2"
5 CATEGORY="development"
6 SHORT_DESC="Advanced text editor"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="ncurses gtk+ acl xorg-libXt"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.vim.org/"
11 WGET_URL="ftp://ftp.vim.org/pub/vim/unix/$TARBALL"
12 CONFIG_FILES="/etc/vim/vimrc"
13 TAGS="text-editor"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
20 ./configure --prefix=/usr \
21 --cache-file=$PWD/config.cache \
22 --infodir=/usr/share/info \
23 --with-features=normal \
24 --enable-gui=gtk2 \
25 --enable-multibyte \
26 --disable-motif-check \
27 --disable-athena-check \
28 --mandir=/usr/share/man $CONFIGURE_ARGS &&
30 make VIMRCLOC=/etc/vim VIMRUNTIMEDIR=/usr/share/vim/$src MAKE="make -e" &&
31 make DESTDIR=$DESTDIR install
32 mkdir -p $DESTDIR/etc/vim
33 cp -a $src/runtime/vimrc_example.vim $DESTDIR/etc/vim/vimrc
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr $fs/usr/share
41 cp -a $_pkg/usr/bin $fs/usr
42 cp -a $_pkg/usr/share/vim $fs/usr/share
43 rm -f $fs/usr/bin/*vimtutor
44 }
46 post_install()
47 {
48 local root
49 root=$1
50 echo "Processing post-install commands..."
51 cmd=`readlink $root/bin/vi`
52 if [ ! "$cmd" = "/usr/bin/vim" ]; then
53 echo ""
54 echo "**** Actual VI link : $cmd"
55 echo ""
56 echo -n "Do you want vim for /bin/vi (y/N) ? : "; read anser
57 if [ "$anser" == "y" ]; then
58 echo ""
59 echo -n "Removing vi link to make a new one pointing on /usr/bin/vim..."
60 rm $root/bin/vi && ln -sf $root/usr/bin/vim $root/bin/vi
61 status
62 else
63 echo ""
64 echo "Leaving /bin/vi to : $cmd"
65 fi
66 fi
67 }
69 post_remove()
70 {
71 # restore previous symlink
72 echo "Processing post-remove commands..."
73 ln -sf /bin/busybox $1/bin/vi
74 }