From: | "Gunnar Wrobel (wrobel)" <wrobel@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in www-apps/moinmoin/files: reconfig-3 |
Date: | Fri, 01 Aug 2008 17:19:15 |
Message-Id: | E1KOyHY-0007F3-St@stork.gentoo.org |
1 | wrobel 08/08/01 17:19:12 |
2 | |
3 | Added: reconfig-3 |
4 | Log: |
5 | Added moinmoin-1.7.1 wrt sec issue #233560. |
6 | (Portage version: 2.1.4.4) |
7 | |
8 | Revision Changes Path |
9 | 1.1 www-apps/moinmoin/files/reconfig-3 |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/moinmoin/files/reconfig-3?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/moinmoin/files/reconfig-3?rev=1.1&content-type=text/plain |
13 | |
14 | Index: reconfig-3 |
15 | =================================================================== |
16 | #!/bin/bash |
17 | |
18 | die() { |
19 | echo "#####" |
20 | echo $1 |
21 | echo "#####" |
22 | exit 1 |
23 | } |
24 | |
25 | if [ $1 = "install" ]; then |
26 | sed -e "s|^#\(.*\)/path/to/wikiconfigdir|\1${VHOST_ROOT}/${PN}-${PVR}|g" -i ${MY_INSTALLDIR}/moin.cgi || die "sed failed" |
27 | sed -e "s|\./data/|${VHOST_ROOT}/${PN}-${PVR}/data| |
28 | s|\./underlay/|${VHOST_ROOT}/${PN}-${PVR}/underlay| |
29 | s|moin_static171|${VHOST_APPDIR}| |
30 | s|#url_prefix_static|url_prefix_static|" -i ${VHOST_ROOT}/${PN}-${PVR}/wikiconfig.py || die "sed failed" |
31 | sed -e "s|//|/|" -i ${VHOST_ROOT}/${PN}-${PVR}/wikiconfig.py || die "sed failed" |
32 | |
33 | elif [ $1 = "clean" ]; then |
34 | echo $1 |
35 | fi |