You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.1 KiB
58 lines
1.1 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
12 years ago
|
|
||
3 years ago
|
inherit toolchain-funcs
|
||
12 years ago
|
|
||
|
DESCRIPTION="A daemon to serve the gopher protocol"
|
||
5 years ago
|
HOMEPAGE="http://r-36.net/scm/geomyidae/"
|
||
|
SRC_URI="ftp://bitreich.org/releases/geomyidae/${PN}-v${PV}.tgz"
|
||
3 years ago
|
S="${WORKDIR}/${PN}-v${PV}"
|
||
12 years ago
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~arm ~x86"
|
||
|
|
||
3 years ago
|
RDEPEND="
|
||
|
acct-group/gopherd
|
||
|
acct-user/gopherd
|
||
|
"
|
||
|
DEPEND="${RDEPEND}"
|
||
12 years ago
|
|
||
|
src_prepare() {
|
||
|
# enable verbose build
|
||
4 years ago
|
# respect CFLAGS
|
||
|
# remove /usr/lib from LDFLAGS, bug #731672
|
||
12 years ago
|
sed -i \
|
||
|
-e 's/@${CC}/${CC}/g' \
|
||
4 years ago
|
-e '/CFLAGS/s/=/?=/' \
|
||
|
-e '/GEOM_LDFLAGS/s:-L/usr/lib ::' \
|
||
12 years ago
|
Makefile || die 'sed on Makefile failed'
|
||
7 years ago
|
# fix path for pid file
|
||
|
sed -i \
|
||
|
-e 's:/var/run:/run:g' \
|
||
|
rc.d/Gentoo.init.d || die
|
||
12 years ago
|
|
||
7 years ago
|
eapply_user
|
||
12 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake CC="$(tc-getCC)"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dosbin ${PN}
|
||
|
|
||
|
newinitd rc.d/Gentoo.init.d ${PN}
|
||
|
newconfd rc.d/Gentoo.conf.d ${PN}
|
||
|
|
||
|
insinto /var/gopher
|
||
|
doins index.gph
|
||
|
fowners -R root.gopherd /var/gopher
|
||
|
fperms -R g=rX,o=rX /var/gopher
|
||
|
|
||
|
doman ${PN}.8
|
||
|
dodoc CGI README
|
||
|
}
|