/[gentoo-x86]/net-misc/geomyidae/geomyidae-0.26.2.ebuild
Gentoo

Contents of /net-misc/geomyidae/geomyidae-0.26.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Mar 24 13:41:44 2013 UTC (6 years, 8 months ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Version bump

(Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/geomyidae/geomyidae-0.26.1.ebuild,v 1.2 2013/03/08 12:42:20 pinkbyte Exp $
4
5 EAPI=5
6
7 inherit eutils toolchain-funcs user
8
9 DESCRIPTION="A daemon to serve the gopher protocol"
10 HOMEPAGE="http://r-36.net/src/geomyidae/"
11 SRC_URI="http://r-36.net/src/${PN}/${P}.tar.gz"
12
13 LICENSE="MIT"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~x86"
16
17 pkg_setup(){
18 enewgroup gopherd
19 enewuser gopherd -1 -1 /var/gopher gopherd
20 }
21
22 src_prepare() {
23 # enable verbose build
24 # drop -O. from CFLAGS
25 sed -i \
26 -e 's/@${CC}/${CC}/g' \
27 -e '/CFLAGS/s/-O. //' \
28 Makefile || die 'sed on Makefile failed'
29
30 epatch_user
31 }
32
33 src_compile() {
34 emake CC="$(tc-getCC)"
35 }
36
37 src_install() {
38 dosbin ${PN}
39
40 newinitd rc.d/Gentoo.init.d ${PN}
41 newconfd rc.d/Gentoo.conf.d ${PN}
42
43 insinto /var/gopher
44 doins index.gph
45 fowners -R root.gopherd /var/gopher
46 fperms -R g=rX,o=rX /var/gopher
47
48 doman ${PN}.8
49 dodoc CGI README
50 }

  ViewVC Help
Powered by ViewVC 1.1.20