/[gentoo-x86]/net-www/ncsa-httpd/ncsa-httpd-1.5.2a.ebuild
Gentoo

Contents of /net-www/ncsa-httpd/ncsa-httpd-1.5.2a.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Oct 4 19:19:40 2003 UTC (17 years ago) by stuart
Branch: MAIN
Initial import; from bug #25554

1 stuart 1.1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
4    
5     # httpd_1.5.2a-export
6     MY_P=httpd_${PV}-export
7     S=${WORKDIR}/${MY_P}
8     DESCRIPTION="NCSA HTTPd, a classic web server"
9     HOMEPAGE="http://hoohoo.ncsa.uiuc.edu"
10     KEYWORDS="~x86"
11     SRC_URI="ftp://ftp.ncsa.uiuc.edu/Web/httpd/Unix/ncsa_httpd/current/${MY_P}_source.tar.Z"
12     DEPEND=""
13     LICENSE="ncsa-1.3"
14     SLOT="1"
15    
16     src_unpack() {
17     unpack ${A}
18     epatch ${FILESDIR}/${P}.patch
19     }
20    
21     src_compile() {
22     chown -R root:root *
23     make linux || die
24     cd support/auth
25     gcc -o uudecode uudecode.c
26     gcc -o uuencode uuencode.c
27     }
28    
29     src_install() {
30     INSDIR=/usr/local/etc/httpd/
31     exeinto $INSDIR
32     doexe httpd
33    
34     keepdir $INSDIR/htdocs
35     keepdir $INSDIR/logs
36    
37     cp -rf cgi-bin ${D}/usr/local/etc/httpd/
38    
39     cd conf
40     cp access.conf-dist access.conf
41     cp httpd.conf-dist httpd.conf
42     cp srm.conf-dist srm.conf
43     cd ..
44    
45     cp -rf conf ${D}/usr/local/etc/httpd/
46     cp -rf icons ${D}/usr/local/etc/httpd/
47    
48     cd src
49     cp httpd.man httpd.1
50     cd ..
51    
52     exeinto $INSDIR/support
53     doexe support/dbm2std
54     doexe support/dbmdigest
55     doexe support/dbmgroup
56     doexe support/dbmpasswd
57     doexe support/htdigest
58     doexe support/htpasswd
59     doexe support/inc2shtml
60     doexe support/std2dbm
61     doexe support/unescape
62     doexe support/webgrab
63    
64     exeinto $INSDIR/support/auth
65     doexe support/auth/pgp-dec
66     doexe support/auth/pgp-enc
67     doexe support/auth/ripem-dec
68     doexe support/auth/ripem-enc
69     doexe support/auth/uudecode
70     doexe support/auth/uuencode
71    
72     doman src/httpd.1
73     mv support/README README-SUPPORT
74     dodoc COPYRIGHT BUGS CHANGES CREDITS README README-SUPPORT \
75     support/README.change-passwd
76     }
77    
78     pkg_postinst() {
79     ewarn "In the spirit of nostalgia, all files are in the classic"
80     ewarn "directory of /usr/local/etc/httpd. The main binary is"
81     ewarn "/usr/local/etc/httpd/httpd. Documentation and man pages"
82     ewarn "are in the normal places"
83     echo ""
84     ewarn "It's not a good idea to run this in a production environment."
85     }

  ViewVC Help
Powered by ViewVC 1.1.20