From: | "Christian Parpart (trapni)" <trapni@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in games-rpg/mangos: metadata.xml ChangeLog mangos-9999.ebuild Manifest |
Date: | Sat, 04 Oct 2008 07:38:30 |
Message-Id: | E1Km1ic-0000KG-MU@stork.gentoo.org |
1 | trapni 08/10/04 07:38:26 |
2 | |
3 | Added: metadata.xml ChangeLog mangos-9999.ebuild Manifest |
4 | Log: |
5 | initial import |
6 | (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 games-rpg/mangos/metadata.xml |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-rpg/mangos/metadata.xml?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-rpg/mangos/metadata.xml?rev=1.1&content-type=text/plain |
13 | |
14 | Index: metadata.xml |
15 | =================================================================== |
16 | <?xml version="1.0" encoding="UTF-8"?> |
17 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
18 | |
19 | <pkgmetadata> |
20 | <herd>no-herd</herd> |
21 | <maintainer> |
22 | <email>trapni@g.o</email> |
23 | </maintainer> |
24 | <use> |
25 | <flag name='ra'>compiles with support remote console system</flag> |
26 | <flag name='cli'>compiles with support command line system</flag> |
27 | <flag name='sd2'>includes ScriptDev2 to distribution</flag> |
28 | </use> |
29 | </pkgmetadata> |
30 | |
31 | |
32 | |
33 | 1.1 games-rpg/mangos/ChangeLog |
34 | |
35 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-rpg/mangos/ChangeLog?rev=1.1&view=markup |
36 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-rpg/mangos/ChangeLog?rev=1.1&content-type=text/plain |
37 | |
38 | Index: ChangeLog |
39 | =================================================================== |
40 | # ChangeLog for games-rpg/mangos |
41 | # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
42 | # $Header: /var/cvsroot/gentoo-x86/games-rpg/mangos/ChangeLog,v 1.1 2008/10/04 07:38:26 trapni Exp $ |
43 | |
44 | *mangos-9999 (04 Oct 2008) |
45 | |
46 | 04 Oct 2008; Christian Parpart <trapni@g.o> |
47 | +files/9999/mangos-realmd, +files/9999/mangos-worldd, +metadata.xml, |
48 | +mangos-9999.ebuild: |
49 | initial import |
50 | |
51 | |
52 | |
53 | |
54 | 1.1 games-rpg/mangos/mangos-9999.ebuild |
55 | |
56 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-rpg/mangos/mangos-9999.ebuild?rev=1.1&view=markup |
57 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-rpg/mangos/mangos-9999.ebuild?rev=1.1&content-type=text/plain |
58 | |
59 | Index: mangos-9999.ebuild |
60 | =================================================================== |
61 | # Copyright 1999-2008 Gentoo Foundation |
62 | # Distributed under the terms of the GNU General Public License v2 |
63 | # $Header: /var/cvsroot/gentoo-x86/games-rpg/mangos/mangos-9999.ebuild,v 1.1 2008/10/04 07:38:26 trapni Exp $ |
64 | |
65 | # TODO: |
66 | # - make use of system's zlib/zthread ebuilds instead of mangos' packaged |
67 | # - create ebuilds for specific releases (and related patchsets, if desired) |
68 | |
69 | inherit eutils subversion autotools |
70 | |
71 | MANGOS_SVN_REPO_URI="https://mangos.svn.sourceforge.net/svnroot/mangos/trunk" |
72 | SD2_SVN_REPO_URI="https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2" |
73 | |
74 | ESVN_REPO_URI="${MANGOS_SVN_REPO_URI}" |
75 | |
76 | DESCRIPTION="Massive Network Game Object Server" |
77 | HOMEPAGE="http://www.mangosproject.org/" |
78 | |
79 | LICENSE="GPL-2" |
80 | SLOT="0" |
81 | KEYWORDS="~amd64 ~x86" |
82 | IUSE="cli ra sd2 debug mysql postgres" |
83 | |
84 | RDEPEND="postgres? ( virtual/postgresql-server ) |
85 | mysql? ( >=virtual/mysql-4.1 ) |
86 | !mysql? ( !postgres? ( >=virtual/mysql-4.1 ) )" |
87 | |
88 | DEPEND="${RDEPEND} |
89 | >=sys-devel/gcc-3.2 |
90 | sys-devel/make |
91 | sys-devel/automake |
92 | sys-devel/autoconf |
93 | dev-libs/glib |
94 | dev-libs/openssl" |
95 | |
96 | pkg_setup() { |
97 | if useq mysql && useq postgres; then |
98 | eerror "Please decide with database you want to use for this ebuild by" |
99 | eerror "explicitely enabling/disabling the mysql and postgres USE-flags!" |
100 | die "Both useflags - mysql and postgres - has been specified. Choose one of them only!" |
101 | fi |
102 | enewgroup mangos |
103 | enewuser mangos |
104 | } |
105 | |
106 | ## unpacks SD2 (ScriptDev2) into mangos workdir |
107 | function sd2_src_unpack() { |
108 | S="${S}/src/bindings/ScriptDev2" ESVN_REPO_URI="${SD2_SVN_REPO_URI}" subversion_src_unpack || die |
109 | |
110 | local PATCHES_DIR="${S}/src/bindings/ScriptDev2/patches" |
111 | local FILE=$(ls ${PATCHES_DIR} | sort -f -r | awk "NR == 1") |
112 | |
113 | EPATCH_OPTS="-d ${S}" EPATCH_FORCE="yes" epatch "${PATCHES_DIR}/${FILE}" || die |
114 | } |
115 | |
116 | src_unpack() { |
117 | subversion_src_unpack |
118 | |
119 | useq sd2 && sd2_src_unpack |
120 | |
121 | cd "${S}" || die |
122 | eautoreconf --install || die "eautoreconf failed" |
123 | } |
124 | |
125 | src_compile() { |
126 | local myconf |
127 | |
128 | if ! useq mysql && ! useq postgres; then |
129 | # defaulth to mysql in case nothing has been specified. |
130 | myconf="${myconf} --with-mysql" |
131 | fi |
132 | |
133 | econf \ |
134 | --with-gnu-ld \ |
135 | ${myconf} \ |
136 | --sysconfdir=/etc/mangos \ |
137 | $(use_with mysql) \ |
138 | $(use_with postgres postgresql) \ |
139 | $(use_enable cli) \ |
140 | $(use_enable ra) \ |
141 | $(use_enable debug debug-info) \ |
142 | || die "econf failed" |
143 | |
144 | emake || die "emake with current options failed" |
145 | } |
146 | |
147 | src_install() { |
148 | emake DESTDIR="${D}" install || die "emake install failed" |
149 | |
150 | rm -f "${D}/usr/bin/gensvnrevision" # not really part of mangos dist |
151 | |
152 | doinitd "${FILESDIR}/${PV}/mangos-realmd" || die |
153 | doinitd "${FILESDIR}/${PV}/mangos-worldd" || die |
154 | |
155 | dodir /usr/share/mangos/dbc |
156 | dodir /usr/share/mangos/maps |
157 | dodir /usr/share/mangos/vmaps |
158 | |
159 | dodir /var/log/mangos |
160 | |
161 | fowners root.mangos /etc/mangos |
162 | fowners mangos.mangos /var/log/mangos |
163 | } |
164 | |
165 | pkg_postinst() { |
166 | ewarn "You need to manually configure MaNGOS." |
167 | ewarn "See /etc/mangos/ for config files." |
168 | ewarn "Remember to move you maps, DBC and vmaps files to your data folder - /usr/share/mangos/" |
169 | ewarn |
170 | ewarn "Don't forget to run SQL scripts for:" |
171 | ewarn "\t- MaNGOS databases : /usr/share/mangos/sql" |
172 | |
173 | useq sd2 && ewarn "\t- ScriptDev2 database: /usr/share/scriptdev2/sql" |
174 | |
175 | ewarn |
176 | einfo "If you want Mangos to start automatically on boot execute :" |
177 | einfo "\t- rc-update add mangos-realmd default" |
178 | einfo "\t- rc-update add mangos-worldd default" |
179 | einfo |
180 | } |
181 | |
182 | |
183 | |
184 | 1.1 games-rpg/mangos/Manifest |
185 | |
186 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-rpg/mangos/Manifest?rev=1.1&view=markup |
187 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-rpg/mangos/Manifest?rev=1.1&content-type=text/plain |
188 | |
189 | Index: Manifest |
190 | =================================================================== |
191 | AUX 9999/mangos-realmd 609 RMD160 e7b277fc805d41a26a910b0c25cae44248d61f3b SHA1 be923041ba81e28146bb7d3be078a6a330066c9e SHA256 efbad86a64e0526c959dfdf3ea841b1d1ce57255724345eca22b7987eb0971e0 |
192 | AUX 9999/mangos-worldd 565 RMD160 b2bc4988935ba76316b391c62932745bf3aab633 SHA1 86d63c1f58c7e9450a04ab2c14cab071f4b5182d SHA256 9effcdba3c12db6224fd29cd071b4630c4b6b893bf1f4d9b03cee3caa7a98d6b |
193 | EBUILD mangos-9999.ebuild 3283 RMD160 5c2f81c0d029bc068ca1f54999446763e774174b SHA1 0eba21e02c716be531d3be23b6c6853a096692c6 SHA256 3bf56efe77a1d120603dfabbab69470052f5781f11c666c0da81460b98b43f33 |
194 | MISC ChangeLog 310 RMD160 386bfeb4a071f6e7a06db516d260c5b7f24c9b2a SHA1 9e3bfc865eae224eb969a452aa5643cafed9c50f SHA256 853d731702fe76a682f83afec1858a2e814bd350f4dcb67d19907a5fb0f03aec |
195 | MISC metadata.xml 440 RMD160 2e77620a7a39f4a262407214d7b2dc3257c66793 SHA1 3ffff8c13dab3a413af8afe1f07b52b378d15c14 SHA256 3c844f9168d52e2281e8a197769d937640e3b87b58d3ead9d9723b0b78a33172 |