Add a preliminary recipe for gophernicus

Doesn't install as a net_server service yet.
One must also create /var/gopher/ manually.
This commit is contained in:
François Revol
2014-07-28 21:22:08 +02:00
parent e7ca44f6d4
commit f38c89a888

View File

@@ -0,0 +1,56 @@
SUMMARY="Gophernicus is a modern full-featured gopher server"
DESCRIPTION="
Gophernicus is a modern full-featured (and hopefully) secure gopher \
daemon for inetd. It is licensed under the BSD license.
"
COPYRIGHT="2009-2014 Kim Holviala"
LICENSE="BSD (2-clause)"
HOMEPAGE="gopher://gophernicus.org/1/software/gophernicus/"
SRC_URI="http://gophernicus.org/software/gophernicus/gophernicus-1.5.tar.gz"
CHECKSUM_SHA256="eeea761604a1b1277e74a673d0250f10024f99ced0889712e099093a651c232a"
REVISION="1"
#TODO:enable multithreading for the devel package!
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
PROVIDES="
gophernicus$secondaryArchSuffix = $portVersion
cmd:in.gophernicus$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:sed
"
BUILD()
{
make DESTDIR=$prefix SBINDIR=$binDir DOCDIR=$docDir/gophernicus \
NET_SRV=$settingsDir/network/services
}
INSTALL()
{
mkdir -p $binDir
mkdir -p $docDir
make DESTDIR=$prefix SBINDIR=$binDir DOCDIR=$docDir/gophernicus \
NET_SRV=$settingsDir/network/services \
install-files install-docs install-done
#TODO: add as a post_install ?
#install-root
#TODO: add code to enable it with net_server
#install-haiku
}