Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 374464 Details for
Bug 214969
net-p2p/opentracker-9999 (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild for opentracker-0.5
opentracker-0.5.ebuild (text/plain), 4.34 KB, created by
Vladimir Pavljuchenkov (SpiderX)
on 2014-04-07 11:33:20 UTC
(
hide
)
Description:
ebuild for opentracker-0.5
Filename:
MIME Type:
Creator:
Vladimir Pavljuchenkov (SpiderX)
Created:
2014-04-07 11:33:20 UTC
Size:
4.34 KB
patch
obsolete
># Copyright 1999-2013 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI="5" > >inherit eutils user > >DESCRIPTION="High-performance bittorrent tracker" >HOMEPAGE="https://github.com/flygoast/opentracker http://erdgeist.org/arts/software/opentracker/" >LICENSE="BEER-WARE" > >MY_P="unofficial-v${PV}" >SRC_URI="https://github.com/flygoast/opentracker/archive/${MY_P}.tar.gz" >SLOT="0" >KEYWORDS="~amd64 ~x86" > >S="${WORKDIR}/${PN}-${MY_P}" > >declare -A FLAGS >FLAGS=( [blacklist]="DWANT_ACCESSLIST_BLACK" > [gzip]="DWANT_COMPRESSION_GZIP$" > [gzip_always]="DWANT_COMPRESSION_GZIP_ALWAYS" > [ip_from_query]="DWANT_IP_FROM_QUERY_STRING" > [ip_from_proxy]="DWANT_IP_FROM_PROXY" > [ipv6]="DWANT_V6" > [fullscrapes]="DWANT_FULLSCRAPE" > [fullscrapes_modest]="DWANT_MODEST_FULLSCRAPES" > [live_sync]="DWANT_SYNC_LIVE" > [live_sync_unicast]="DSYNC_LIVE_UNICAST" > [log_networks_full]="DWANT_FULLLOG_NETWORKS" > [log_numwant]="DWANT_LOG_NUMWANT" > [persistence]="DWANT_PERSISTENCE" > [spot_woodpeckers]="DWANT_SPOT_WOODPECKER" > [syslog]="DWANT_SYSLOG" > [restrict_stats]="DWANT_RESTRICT_STATS" > [whitelist]="DWANT_ACCESSLIST_WHITE" > [httpdebug]="DWANT_HTTPHUMAN" >) > >IUSE="blacklist debug examples +gzip gzip_always httpdebug ip_from_query ip_from_proxy ipv6 +fullscrapes fullscrapes_modest live_sync live_sync_unicast log_networks_full log_numwant persistence restrict_stats spot_woodpeckers syslog whitelist" > >RDEPEND=">=dev-libs/libowfat-0.27 > gzip? ( sys-libs/zlib )" > >REQUIRED_USE="blacklist? ( !whitelist ) > gzip_always? ( gzip ) > gzip? ( fullscrapes ) > live_sync_unicast? ( live_sync ) > persistence? ( !ipv6 ) >" > >pkg_setup() { > # Add opentracker group and user to system > # (no home directory specified, because otherwise it will be result in opentracker:root ownership on it) > enewgroup ${PN} > enewuser ${PN} -1 -1 -1 ${PN} >} > >src_prepare() { > # Fix use of FEATURES, so it's not mixed up with portage's FEATURES, and comment all of them > # Define PREFIX, BINDIR and path to libowfat; remove lpthread, lz and O3 flag, owfat target, stripping; create dirs on install > sed -i \ > -e "s|FEATURES|FEATURES_INTERNAL|g" \ > -e "s|^FEATURES_INTERNAL|#FEATURES_INTERNAL|g" \ > -e "s|PREFIX?=..|PREFIX?=/usr|g" \ > -e "s|LIBOWFAT_HEADERS=libowfat|LIBOWFAT_HEADERS=\$(PREFIX)/include/libowfat|g" \ > -e "s|-lpthread||g" \ > -e "s|-O3||g" \ > -e "s|-lz||g" \ > -e "s|strip \$@||g" \ > -e "s|BINDIR?=\$(PREFIX)/bin|BINDIR?=\$(DESTDIR)\$(PREFIX)/bin/|g" \ > -e "s|all: owfat|all:|g" \ > -e "s|install -m 755 ${PN} \$(BINDIR)|install -D -m 755 ${PN} \$(BINDIR)/${PN}|g" \ > Makefile || die "sed for src_prepare failed" > > # Define which features to use > for flag in ${!FLAGS[@]} ; do > sed -i "$(usex $flag /${FLAGS[$flag]}/s/^#*// '')" Makefile || die "sed for $flag failed" > done > > # Return back -lz flag for gzip > sed -i "$(usex gzip /LDFLAGS+/s/$/-lz/ '')" Makefile || die "sed for lz in LDFLAGS failed" > > # Debug build: build opentracker.debug but target as opentracker, and don't build opentracker > if use debug; then > sed -i \ > -e '/D_DEBUG_HTTPERROR/s|^#*||g' \ > -e 's|all: $(BINARY)|all:|g' \ > -e 's|$@ $(OBJECTS_debug)|opentracker $(OBJECTS_debug)|g' \ > Makefile || die "sed for debug object failed" > fi > > # Correct config paths > sed -i \ > -e "/access.whitelist/s|/path/to/whitelist|/var/lib/${PN}/access.whitelist|g" \ > -e "/access.blacklist/s|./blacklist|/var/lib/${PN}/access.blacklist|g" \ > -e "/tracker.rootdir/s|/usr/local/etc/opentracker|/var/lib/${PN}|g" \ > -e "/tracker.user/s|nobody|${PN}|g" \ > -e "/persist.file/s|/path/to/persist.odb|/var/lib/${PN}/${PN}.odb|g" \ > "${S}"/opentracker.conf.sample || die "sed for config failed" > > epatch_user >} > >src_install() { > # Install and copy documentation > default > > # Keeping chroot directory > diropts -m 755 -o ${PN} -g ${PN} > keepdir /var/lib/${PN} > > # Install Gentoo init script and its config > newinitd "${FILESDIR}"/${PN}.initd ${PN} > newconfd "${FILESDIR}"/${PN}.confd ${PN} > > # Install manual page > doman "${FILESDIR}"/${PN}.8 > > # Install config > insinto /etc/${PN} > newins "${S}"/${PN}.conf.sample ${PN}.conf > > if use examples ; then > # Install files into specified directory > insinto /usr/share/${PN} > doins -r "${S}"/tests/*.sh > doins "${S}"/sync_daemon.pl > > use persistence && doins "${S}"/ODB_FORMAT.md > fi > > # Correct user, group and permissions for files and directories > fowners -R ${PN}:${PN} /etc/${PN} > fperms 0640 /etc/${PN}/${PN}.conf >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 214969
:
147404
|
185189
|
186132
|
282341
|
282343
|
282345
|
282361
|
342556
|
342560
|
342562
|
347442
|
347510
|
357184
| 374464 |
374466