games-server/fbmuck-9999
authorJustin Wind <justin.wind+git@gmail.com>
Tue, 26 Aug 2014 22:35:44 +0000 (15:35 -0700)
committerJustin Wind <justin.wind+git@gmail.com>
Tue, 26 Aug 2014 22:35:44 +0000 (15:35 -0700)
games-server/fbmuck/Manifest
games-server/fbmuck/fbmuck-9999.ebuild [new file with mode: 0644]
games-server/fbmuck/files/fbmuck-9999-gentoo.patch [new file with mode: 0644]

index b071f444eb0a6e7f84ec7231eeb82876bee9c15d..137ade3812963621a39dc749ea9b742e1ff30c88 100644 (file)
@@ -3,8 +3,9 @@ AUX fbmuck-6.01-gentoo.patch 3236 SHA256 fb24ea863d450369a8b0685245f86d9b59f5eaa
 AUX fbmuck-6.05-gentoo.patch 1135 SHA256 243dcc89c911bf775a42112b1a01d9d74d2a9b2181ad535d18917f28710b2aec SHA512 8f03e505228ea278917a227d0b7bf5f9280ceb59b10b05f10feff81afdd3e260602836a9268e3dcc41be94378a880c528515dc9d88bdaee80a63261010f115e7 WHIRLPOOL 327c52ab94b77718bdb0404a1a3860e51f14a4b64488837d9b6bddaff893982cb42d65ad49656e001db6c4ef2f9ddca9f8dad6abd1a4474523b6eba3a64a8c43
 AUX fbmuck-6.07-gentoo.patch 2330 SHA256 73277a7b0596f172bce3ac2477942b747b8bf202567942684696fc34e59e0eaa SHA512 2d30877470c4dd4d341c5febe2450253a72bec76013593a59b9f64cffec35294dc8e29c674cedff18ce8aef6f691cc546c6682e77b6ee0557ffe1b62ab1e28e5 WHIRLPOOL 6772f7817dfb650049ee671aa91cd8d1b1a177f6a059387a16b735c8fdb4a6f1e5faf9eb9e10096d9ee7c5fecabb0d9f0cf25d446ff3c46a87cfb46d667492e7
 AUX fbmuck-6.09-gentoo.patch 1157 SHA256 9e101561bf77bb3dded19aa5abc7ac593122693bead52a0ded8dffc0555a3bf4 SHA512 c625b8bfef7db7d60ae99ce5181118b4e575050c75949dd1b5de3ecd5982b78060c3e106f660344d04a2b98981db4ecc57df48fc709e8d3b1bd7552397e516ed WHIRLPOOL db8bbb570aedb1d44883781f8d26e7efc78d92d74b63dd2da604872d6b17fabbc4e20d5555f55f7c7935b8f4a2149f4b465b3a81f7c790a881c8f7b20d62b232
+AUX fbmuck-9999-gentoo.patch 1492 SHA256 529008a11812c1a9650b4c0cc8fb56a999dbd911414578422a785045ac09e641 SHA512 832e8f4be5b0ddb02d80f843509ca80e142a8a80baf8e248088ef99854303e0ef572eb65e380a95865b5281ef79e6ae474c6a127e5c1b59aed817e2d91710964 WHIRLPOOL 2799cd24e8f780c3bb8f371501177f2ca2e5df546c57925088c1822b29d419a10d06ce35ebfa7c462dacd8fb17817e2e2f709ce4259fae8b83f2f2bf010c2516
 AUX fbmuckctl 5271 SHA256 4821530e52768d4d94d3b1a4482d188fc9da1fecaf97ff5dfacd6029e8c67ee6 SHA512 fea800d3991ace8ee29705fc64bb0827ad07489b73d8a21532f02e1b643a934aae9f2895da463435b04216b7e3918bbe3d13e7ac863bee37a4fa16e88d880b87 WHIRLPOOL 914498887eb6b29acf924f41deee27b915ccf722e8b25be733546da98289e429a4a2818417ea199882faa6dec86c1ba9490fd913bd4467041c806ede56e5e69a
 AUX fbmucks 209 SHA256 0411aad95f4cc5c54876586690e7f3e44777aac46cb3b068c6cc2f0ebae111a2 SHA512 1c9631a85179bd28797a61b8306bcc2dc3008f978e3a5a72b7cb346edeefc64204029b83d785b14135c7a5514473bc656efcf5884410f7b5b651987ac5a1a0b9 WHIRLPOOL d38a87800dfd63f0f2ff65af0941e259d495742bcd4e6a35ae0eefd362e2644d865320688381758fcf5071ed4bf44adf8dbd10d6304d0da149cc8dd4f851347b
-EBUILD fbmuck-9999.ebuild 1480 SHA256 51c7400623fe9d5040f43fb6811c717b68abe938d473606a14b4787576d3595e SHA512 fc4e47dda092179edf8820e09dc4bfa818cb6bd9aff4eeeb13adfdba8c1d64ad960aa027e8c28fb7b2a2d627a1bd10602e187a3f9d5c23a78783644245ca49ae WHIRLPOOL bdc4c6c61f32faa2e0a2a5e1b6f5c7b7b423d368d237aaf7c2b8b2e5dfaf0da2ba97e1c2ea1313ddea981243bcf09c66742b09b17ceff2cd8f35937df9291579
+EBUILD fbmuck-9999.ebuild 1682 SHA256 3dfd099622b4cc2c027746d1a1a619b6cb3c4b86ec7fa18c8b1891b51e034a03 SHA512 2434339fc5c4d7c91ec08be16e4113acacecd003dc35af38f18e9410cda86993fbc965194219b802d13b50377f2be64ce02bfcfc47a567b872134fb972ae7e72 WHIRLPOOL d7f4268bd06a66f212fa791572b6bd9a93efc4b9d614b56fc97de0c42ae2f70b0c91f1d8b4b541f5a4b61cf927347de3e0dc8c69322f50cc9f984c19987085da
 MISC ChangeLog 339 SHA256 5486d8e0a41c13eaa97c8117fe3007606ce9c72d37fe65b14c7e63cc77e973ec SHA512 89cbf44ca797a4c68bb44dac2eec4101504f89163fa0c7feefeacbcbc146dc974c1130bcd1c34ae0675b55d03e474e9be83fb10907ab940058650d947edb3f7e WHIRLPOOL 8fbc04c5f4f8dd9ffb1109f4f7e5b78e0bd9bff0685a76fd7f17c48bc41e5e4fc521e554df6626b0adf9c0d7ee34705a856b5a43edf2fb2ea58b081546a03de0
 MISC metadata.xml 769 SHA256 a4007950016cfcf1538a137b99ef6b7fbc6a1f90f523d0e6ace25d6b5d5364e2 SHA512 52ce0a1a7ab19174efed35f8695c1f0f3b91c4e2ca9c688abe2c3eb961090378388e6188c34d968d797f3770cf637683176b256cee0258f190bfbd9cb884fb7d WHIRLPOOL 36d3c8c9df7ebe36c4bc36b3c0a0befffa6dde969c65be304ec7368436542659d68ae189e7a35fa33923840d82f0fe870419d388bfc74a5f729830bb69ea6d9a
diff --git a/games-server/fbmuck/fbmuck-9999.ebuild b/games-server/fbmuck/fbmuck-9999.ebuild
new file mode 100644 (file)
index 0000000..b333216
--- /dev/null
@@ -0,0 +1,84 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+inherit eutils fixheadtails git-2
+
+IUSE="ssl ipv6 +diskbase -scary_prims debug pcre"
+
+DESCRIPTION="A database-backed multi-user chat server."
+HOMEPAGE="http://www.belfry.com/fuzzball/"
+EGIT_REPO_URI="git://git.code.sf.net/p/fbmuck/code"
+EGIT_PROJECT="fbmuck.git"
+EGIT_SOURCEDIR="${WORKDIR}/${P}"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS=""
+
+RDEPEND="
+       ssl? ( dev-libs/openssl )
+       pcre? ( dev-libs/libpcre )
+"
+
+DEPEND="${RDEPEND}
+       >=sys-apps/sed-4
+"
+
+RESTRICT="strip"
+
+S="${WORKDIR}/${P}/fbmuck"
+
+src_prepare() {
+       epatch "${FILESDIR}/${P}-gentoo.patch"
+
+       einfo "ensuring configure script is executable"
+       chmod +x configure
+
+       ht_fix_file game/restart.in game/resurrect
+
+       einfo "disabling DB_DOUBLING define"
+       sed -i -e 's:#define  DB_DOUBLING:#undef DB_DOUBLING:' include/config.h || die "sed failed"
+
+       if use diskbase
+       then
+               einfo "enabling DISKBASE define"
+               sed -i -e 's:#undef DISKBASE:#define DISKBASE:' include/config.h || die "sed failed"
+       fi
+       if use scary_prims
+       then
+               einfo "enabling SCARY_MUF_PRIMS define"
+               sed -i -e 's:#undef SCARY_MUF_PRIMS:#define SCARY_MUF_PRIMS:' include/config.h || die "sed failed"
+       fi
+}
+
+src_configure() {
+       econf \
+               $(use_with ssl ssl=/usr) \
+               $(use_with pcre pcre=/usr) \
+               $(use_enable ipv6) \
+               $(use_enable debug)
+}
+
+src_compile() {
+       einfo "entering ${S}/src"
+       cd "${S}/src"
+
+       emake all
+}
+
+src_install() {
+       keepdir /usr/share/fbmuck
+
+       emake DESTDIR="${D}" install
+
+       dobin "${FILESDIR}/fbmuckctl"
+
+       doinitd "${FILESDIR}/fbmuck"
+
+       insinto /etc
+       doins "${FILESDIR}/fbmucks"
+
+       dodoc src/CHANGESfb6 INSTALLATION README
+}
diff --git a/games-server/fbmuck/files/fbmuck-9999-gentoo.patch b/games-server/fbmuck/files/fbmuck-9999-gentoo.patch
new file mode 100644 (file)
index 0000000..c4bf2a4
--- /dev/null
@@ -0,0 +1,42 @@
+diff -Bru upstream/fbmuck/fbmuck/src/Makefile.in gentoo/fbmuck/fbmuck/src/Makefile.in
+--- upstream/fbmuck/fbmuck/src/Makefile.in     2014-08-26 12:49:31.145913686 -0700
++++ gentoo/fbmuck/fbmuck/src/Makefile.in       2014-08-26 13:24:18.874019937 -0700
+@@ -37,16 +37,16 @@
+ INCLUDE= ${ROOT}/include
+
+ # The root of the directory tree to install to.
+-prefix=@prefix@
+-datarootdir=@datarootdir@
++prefix=${D}@prefix@
++datarootdir=${D}@datarootdir@
+ exec_prefix=@exec_prefix@
+ # Destinations for binaries
+ INSTALL_BINDIR=@bindir@
+ INSTALL_SBINDIR=@sbindir@
+ # Destination for helpfiles
+-INSTALL_HELPDIR=@datadir@/fbmuck
++INSTALL_HELPDIR=${D}@datadir@/fbmuck
+ # Destination for starter databases
+-INSTALL_DBSDIR=@datadir@/fbmuck/starter_dbs
++INSTALL_DBSDIR=${D}@datadir@/fbmuck/starter_dbs
+
+ # ${DESTDIR} is used by the Debian packaging system to build the .debs
+ # and is defined by the debian/rules file.
+@@ -82,7 +82,7 @@
+ #
+ # Include path, Cflags...
+ #
+-CFLAGS= ${OPTIM}
++CFLAGS = @CFLAGS@
+
+ #
+ # for saving old copies.
+@@ -169,7 +169,7 @@
+       @echo "#define BINDIR \"$(INSTALL_BINDIR)\"" >> $(INCLUDE)/defines.h
+       @echo "#define INSTALL_HELPDIR \"$(INSTALL_HELPDIR)\"" >> $(INCLUDE)/defines.h
+
+-fbmuck: $(INCLUDE)/defines.h ${P} ${COBJ} ${MALLOBJ} interface.o ${LOBJ} mkversion.sh Makefile
++fbmuck: $(INCLUDE)/defines.h ${COBJ} ${MALLOBJ} interface.o ${LOBJ} mkversion.sh Makefile
+       sh mkversion.sh
+       ${PRE} ${CC} ${CFLAGS} ${INCL} ${DEFS} -c version.c
+       if [ -f fbmuck ]; then ${MV} fbmuck fbmuck~ ; fi