Contents of /trunk/core/screen/screen-4.0.3-r1.smage2
Parent Directory | Revision Log
Revision 332 -
(show annotations)
(download)
Mon Dec 22 18:41:51 2008 UTC (15 years, 9 months ago) by niro
File size: 2540 byte(s)
Mon Dec 22 18:41:51 2008 UTC (15 years, 9 months ago) by niro
File size: 2540 byte(s)
-rev bump to 4.13a-r2: rebuild against ncurses-5.7
1 | # $Header: /magellan-cvs/smage/screen/screen-4.0.2-r6.smage2,v 1.1 2008/02/10 23:24:35 niro Exp $ |
2 | |
3 | PNAME="screen" |
4 | PVER="4.0.3" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="app-misc" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Screen is a full-screen window manager that multiplexes a physical terminal between several processes." |
11 | HOMEPAGE="http://www.gnu.org/software/screen/" |
12 | |
13 | DEPEND=">= sys-libs/ncurses-5.7 |
14 | >= sys-libs/pam-0.99" |
15 | |
16 | SDEPEND=">= sys-apps/sed-4 |
17 | >= sys-dev/automake-3 |
18 | >= sys-dev/autoconf-4" |
19 | |
20 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
22 | |
23 | sminclude mtools |
24 | |
25 | SRC_URI=( |
26 | gnu://${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/screen.pamd |
29 | mirror://${PNAME}/${PNAME}-4.0.1-int-overflow-fix.patch |
30 | mirror://${PNAME}/${PNAME}-4.0.2-no-libelfs-or-elfutils-dep.patch |
31 | mirror://${PNAME}/${PNAME}-4.0.2-no-utempter-dep.patch |
32 | ) |
33 | |
34 | UP2DATE="updatecmd_gnu ${PNAME} gz" |
35 | |
36 | src_prepare() |
37 | { |
38 | munpack ${SRCFILE} || die |
39 | cd ${SRCDIR} |
40 | |
41 | # fix integer overflow vulnerability |
42 | mpatch ${PNAME}-4.0.1-int-overflow-fix.patch || die |
43 | |
44 | # remove libelf and elfutil dep even when they are found on the system |
45 | mpatch ${PNAME}-4.0.2-no-libelfs-or-elfutils-dep.patch || die |
46 | |
47 | # same for utempter |
48 | mpatch ${PNAME}-4.0.2-no-utempter-dep.patch || die |
49 | |
50 | # fix some pathes |
51 | sed -i \ |
52 | -e "s:/usr/local/etc/screenrc:/etc/screenrc:g; |
53 | s:/usr/local/screens:/var/run/screen:g; |
54 | s:/local/etc/screenrc:/etc/screenrc:g; |
55 | s:/etc/utmp:/var/run/utmp:g; |
56 | s:/local/screens/S-:/var/run/screen/S-:g" doc/screen.1 || die |
57 | |
58 | # rebuild configure |
59 | export WANT_AUTOCONF=2.5 |
60 | autoconf || die |
61 | } |
62 | |
63 | src_compile() |
64 | { |
65 | cd ${SRCDIR} |
66 | |
67 | # screen needs some special cflags ... |
68 | export CFLAGS="${CFLAGS} -DPTYMODE=0620 -DPTYGROUP=4 -DUSE_PAM" || die |
69 | export CXXFLAGS="${CFLAGS}" || die |
70 | |
71 | mconfigure \ |
72 | --with-socket-dir=/var/run/screen \ |
73 | --with-sys-screenrc=/etc/screenrc \ |
74 | --enable-rxvt_osc \ |
75 | --enable-telnet \ |
76 | --enable-colors256 \ |
77 | --enable-pam || die |
78 | |
79 | LC_ALL=POSIX make term.h || die |
80 | mmake || die |
81 | } |
82 | |
83 | src_install() |
84 | { |
85 | cd ${SRCDIR} |
86 | |
87 | # needed directories |
88 | minstalldir /usr/share/terminfo || die |
89 | |
90 | mmake DESTDIR=${BINDIR} install || die |
91 | |
92 | # install pam auth |
93 | minstallpam screen.pamd screen || die |
94 | |
95 | # install termcap |
96 | minstallfile terminfo/screencap /usr/share/terminfo || die |
97 | |
98 | # install screenrc |
99 | minstalletc etc/etcscreenrc screenrc || die |
100 | |
101 | # mark this dir undeletable |
102 | mkeepdir /var/run/screen || die |
103 | |
104 | # fix some permissions |
105 | mchmod u+s /usr/bin/screen || die |
106 | mchmod go-w /var/run/screen || die |
107 | |
108 | minstalldocs ChangeLog COPYING FAQ NEWS* README TODO || die |
109 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |