Magellan Linux

Contents of /trunk/core/screen/screen-4.6.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30031 - (show annotations) (download)
Tue Oct 24 08:12:41 2017 UTC (6 years, 6 months ago) by niro
File size: 1958 byte(s)
auto added: ver bump to 4.6.2-r1
1 # $Id$
2
3 PNAME="screen"
4 PVER="4.6.2"
5 PBUILD="r1"
6
7 PCAT="app-misc"
8
9 DESCRIPTION="Screen is a full-screen window manager that multiplexes a physical terminal between several processes."
10 HOMEPAGE="http://www.gnu.org/software/screen/"
11
12 DEPEND=">= sys-libs/ncurses-6.0
13 >= sys-libs/pam-1.1"
14
15 SDEPEND=">= virtual/sed
16 >= sys-dev/automake-4
17 >= sys-dev/autoconf-5"
18
19 SRCFILE="${PNAME}-${PVER}.tar.gz"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 sminclude mtools
23
24 SRC_URI=(
25 gnu://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/screen.pamd-systemauth
28 )
29
30 UP2DATE="updatecmd_gnu ${PNAME} gz"
31
32 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 cd ${SRCDIR}
36
37 # fix some pathes
38 sed -i \
39 -e "s:/usr/local/etc/screenrc:/etc/screenrc:g;
40 s:/usr/local/screens:/var/run/screen:g;
41 s:/local/etc/screenrc:/etc/screenrc:g;
42 s:/etc/utmp:/var/run/utmp:g;
43 s:/local/screens/S-:/var/run/screen/S-:g" doc/screen.1 || die
44
45 # rebuild configure
46 export WANT_AUTOCONF=2.5
47 autoconf || die
48 }
49
50 src_compile()
51 {
52 cd ${SRCDIR}
53
54 # screen needs some special cflags ...
55 export CFLAGS="${CFLAGS} -DPTYMODE=0620 -DPTYGROUP=4 -DUSE_PAM" || die
56 export CXXFLAGS="${CFLAGS}" || die
57
58 mconfigure \
59 --with-socket-dir=/run/screen \
60 --with-sys-screenrc=/etc/screenrc \
61 --enable-rxvt_osc \
62 --enable-telnet \
63 --enable-colors256 \
64 --enable-pam || die
65
66 LC_ALL=POSIX make term.h || die
67 mmake || die
68 }
69
70 src_install()
71 {
72 cd ${SRCDIR}
73
74 # needed directories
75 minstalldir /usr/share/terminfo || die
76
77 mmake DESTDIR=${BINDIR} install || die
78
79 # install pam auth
80 minstallpam screen.pamd-systemauth screen || die
81
82 # install termcap
83 minstallfile terminfo/screencap /usr/share/terminfo || die
84
85 # install screenrc
86 minstalletc etc/etcscreenrc screenrc || die
87
88 # mark this dir undeletable
89 mkeepdir /var/run/screen || die
90
91 # fix some permissions
92 mchmod u+s /usr/bin/screen || die
93 mchmod go-w /var/run/screen || die
94
95 minstalldocs ChangeLog COPYING FAQ NEWS* README TODO || die
96 }