wok-6.x view xtel/receipt @ rev 13685

btrfs-progs: do not create 2 snapshots simultaneously...
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 03 11:12:37 2012 +0100 (2012-12-03)
parents a0250385f2a5
children 408c87fa22ca
line source
1 # SliTaz package receipt.
3 PACKAGE="xtel"
4 VERSION="3.3.0"
5 CATEGORY="network"
6 SHORT_DESC="X emulator of the French Minitel."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://pficheux.free.fr/xtel/"
10 WGET_URL="${WEB_SITE}download/$TARBALL"
11 CONFIG_FILES="/etc/xtel"
12 TAGS="emulator minitel"
14 DEPENDS="ncurses-extra jpeg xorg-libXp xorg"
15 BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-gccmakedep xorg-xbitmaps \
16 xorg-libXp xorg-bdftopcf xorg-mkfontdir xorg-mkfontscale jpeg-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src &&
22 sed -i 's/sys_errlist.errno./strerror(errno)/' procedure.c teleinfo.c \
23 mdmdetect.c xteld.c Xsra/SelFile.c
24 sed -i 's/sys_errlist.code_erreur./strerror(code_erreur)/' xaw.c xm.c
25 sed -i '/sys_nerr;/d;s/errno <= sys_nerr/1/' Xsra/SelFile.c
26 sed -i 's/getwd.SFstartDir/getcwd(SFstartDir, MAXPATHLEN/' Xsra/SelFile.c
27 sed -i 's/, \(\$(...DIR)\)/,\1/;s/install_iminitel$/true/' \
28 Imakefile */Imakefile
29 xmkmf &&
30 make -j 1 Xtel &&
31 make all &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share/fonts/X11
39 cp -a $_pkg/* $fs/
40 mv $fs/usr/lib/X11/xtel $fs/etc
41 ln -s /etc/xtel $fs/usr/lib/X11
42 sed -i 's/`host/`nslookup/;s|/bin/bash|/bin/sh|' $fs/etc/ppp/ip*.iminitel
43 sed -i 's|X11R6/||' $fs/usr/bin/make_xtel_lignes
44 mv $fs/usr/lib/X11/fonts/* $fs/usr/share/fonts/X11
45 }
47 # Pre and post install commands for Tazpkg.
48 post_install()
49 {
50 grep -qs ^xtel $1/etc/services || cat >> $1/etc/services <<EOT
51 xtel 1313/tcp # French minitel
52 EOT
53 grep -qs ^xtel $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
54 xtel stream tcp nowait root /usr/bin/xteld xteld
55 EOT
56 chroot "$1/" /usr/bin/install_iminitel
57 if [ -z "$1" ]; then
58 /etc/init.d/inetd stop
59 /etc/init.d/inetd start
60 fi
61 cat <<EOT
63 You should launch /usr/bin/make_xtel_lignes now.
65 EOT
66 }