Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apache/anyterm: ChangeLog anyterm-1.1.16.ebuild
Date: Thu, 10 Jan 2008 16:16:06
Message-Id: E1JD04X-0002Rh-8C@stork.gentoo.org
1 hollow 08/01/10 16:16:01
2
3 Modified: ChangeLog
4 Added: anyterm-1.1.16.ebuild
5 Log:
6 version bump, #203928
7 (Portage version: 2.1.4_rc11)
8
9 Revision Changes Path
10 1.10 www-apache/anyterm/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/anyterm/ChangeLog?rev=1.10&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/anyterm/ChangeLog?rev=1.10&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/anyterm/ChangeLog?r1=1.9&r2=1.10
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-apache/anyterm/ChangeLog,v
19 retrieving revision 1.9
20 retrieving revision 1.10
21 diff -u -r1.9 -r1.10
22 --- ChangeLog 6 Jan 2008 20:17:49 -0000 1.9
23 +++ ChangeLog 10 Jan 2008 16:16:00 -0000 1.10
24 @@ -1,6 +1,12 @@
25 # ChangeLog for www-apache/anyterm
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-apache/anyterm/ChangeLog,v 1.9 2008/01/06 20:17:49 hollow Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-apache/anyterm/ChangeLog,v 1.10 2008/01/10 16:16:00 hollow Exp $
29 +
30 +*anyterm-1.1.16 (10 Jan 2008)
31 +
32 + 10 Jan 2008; Benedikt Böhm <hollow@g.o> files/50_anyterm.conf,
33 + +anyterm-1.1.16.ebuild:
34 + version bump, #203928
35
36 06 Jan 2008; Benedikt Böhm <hollow@g.o>
37 -files/anyterm-1.1.8-apachemod-Makefile.patch,
38
39
40
41 1.1 www-apache/anyterm/anyterm-1.1.16.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/anyterm/anyterm-1.1.16.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/anyterm/anyterm-1.1.16.ebuild?rev=1.1&content-type=text/plain
45
46 Index: anyterm-1.1.16.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-apache/anyterm/anyterm-1.1.16.ebuild,v 1.1 2008/01/10 16:16:00 hollow Exp $
51
52 inherit apache-module eutils toolchain-funcs webapp
53
54 KEYWORDS="~x86"
55
56 DESCRIPTION="A terminal anywhere."
57 HOMEPAGE="http://anyterm.org/"
58 SRC_URI="http://anyterm.org/download/${P}.tbz2"
59 LICENSE="GPL-2"
60 SLOT="0"
61 IUSE="opera pam ssl"
62
63 DEPEND="dev-libs/boost
64 >=dev-libs/rote-0.2.8
65 >=sys-devel/gcc-3
66 virtual/ssh
67 pam? ( www-apache/mod_auth_pam )"
68 RDEPEND="${DEPEND}"
69
70 APACHE2_MOD_CONF="50_${PN}"
71 APACHE2_MOD_DEFINE="ANYTERM"
72 use pam && APACHE2_MOD_DEFINE="${APACHE2_MOD_DEFINE} -D AUTH_PAM"
73 use ssl && APACHE2_MOD_DEFINE="${APACHE2_MOD_DEFINE} -D SSL"
74 APACHE2_MOD_FILE="${S}/apachemod/.libs/${PN}.so"
75 DOCFILES="CHANGELOG README"
76
77 WEBAPP_MANUAL_SLOT="yes"
78
79 need_apache2_2
80
81 pkg_setup() {
82 webapp_pkg_setup
83 apache-module_pkg_setup
84
85 if use ssl && ! built_with_use www-servers/apache ssl; then
86 die "Build www-servers/apache with USE=ssl."
87 fi
88
89 if ! built_with_use --missing true dev-libs/boost threads; then
90 die "Build dev-libs/boost with USE=threads."
91 fi
92 }
93
94 src_unpack() {
95 unpack ${A}
96 cd "${S}"
97
98 epatch "${FILESDIR}"/${PN}-1.1.15-browser-gentoo.patch
99 sed -i -e "s:apr-config:apr-1-config:g" apachemod/Makefile
100 }
101
102 src_compile() {
103 cd apachemod
104 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "Apachemod make failed"
105 cd ..
106
107 # Modify browser files to reflect USE flags.
108 for flag in opera pam ssl ; do
109 if use ${flag} ; then
110 sed -i -e "s/^#USE=${flag}#//" browser/{*,.htaccess}
111 sed -i -e "/^#USE=-${flag}#/D" browser/{*,.htaccess}
112 else
113 sed -i -e "s/^#USE=-${flag}#//" browser/{*,.htaccess}
114 sed -i -e "/^#USE=${flag}#/D" browser/{*,.htaccess}
115 fi
116 done
117 }
118
119 src_install() {
120 apache-module_src_install
121 webapp_src_preinst
122 cp -f browser/{*,.htaccess} "${D}/${MY_HTDOCSDIR}"
123 webapp_postinst_txt en "${FILESDIR}"/${PN}-1.1.15-postinst-en.txt
124 webapp_src_install
125 }
126
127 pkg_postinst() {
128 webapp_pkg_postinst
129 apache-module_pkg_postinst
130
131 use ssl || ewarn "USE=-ssl: Anyterm without SSL is very insecure!"
132 use pam || ewarn "USE=-pam: You will have to add your own authentication mechanism."
133 use opera || ewarn "USE=opera: Be sure to disable some logging in your Apache configuration files!"
134 if ! use ssl || ! use pam || use opera ; then
135 ewarn "For more information see http://anyterm.org/security.html"
136 fi
137 }
138
139
140
141 --
142 gentoo-commits@l.g.o mailing list