/[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.3 - (hide annotations) (download)
Fri Jun 25 01:06:56 2004 UTC (16 years, 4 months ago) by agriffis
Branch: MAIN
Changes since 1.2: +2 -2 lines
update copyright line: Gentoo Technologies => Gentoo Foundation

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

  ViewVC Help
Powered by ViewVC 1.1.20