Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 39594 Details for
Bug 64032
antispoof patch for irc-server
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
irc-server-2.10.3_p7-r1.ebuild
irc-server-2.10.3_p7-r1.ebuild (text/plain), 3.94 KB, created by
Jesús P Rey (Chuso)
on 2004-09-14 12:01:34 UTC
(
hide
)
Description:
irc-server-2.10.3_p7-r1.ebuild
Filename:
MIME Type:
Creator:
Jesús P Rey (Chuso)
Created:
2004-09-14 12:01:34 UTC
Size:
3.94 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/net-irc/irc-server/irc-server-2.10.3_p7.ebuild,v 1.5 2004/07/12 23:04:08 swegener Exp $ > >inherit eutils > >MY_P=irc${PV/_/} > >DESCRIPTION="RFC compliant IRC server" >HOMEPAGE="http://www.irc.org/" >SRC_URI="ftp://ftp.irc.org/irc/server/${MY_P}.tgz" > >LICENSE="GPL-1" >SLOT="0" >KEYWORDS="~x86 ~ppc" >IUSE="zlib ipv6 antispoof" > >RDEPEND="virtual/libc > sys-libs/ncurses > zlib? ( sys-libs/zlib )" >DEPEND="${RDEPEND} > sys-apps/sed > sys-apps/grep" > >S=${WORKDIR}/${MY_P} > >src_unpack() { > unpack ${A} > epatch ${FILESDIR}/${PV}-gentoo.patch || die > use antispoof && { EPATCH_OPTS="-p1 -d ${S}" epatch ${S}/contrib/antispoof.diff || die; } >} > >src_compile () { > > IRCUID=`grep ^ircd: /etc/passwd | cut -d : -f 3` > IRCGID=`grep ^ircd: /etc/group | cut -d : -f 3` > if [ -z "$IRCGID" ] > then > IRCGID=`grep ^ircd: /etc/passwd | cut -d : -f 4` > fi > > # What about using an standard UID & GID instead of random ones? > if [ -z "$IRCUID" ] > then > IRCUID=0 > until [ -z "`cut -d : -f 3 /etc/passwd | grep $IRCUID`" ] > do > IRCUID=$RANDOM > done > fi > > if [ -z "$IRCGID" ] > then > IRCGID=0 > until [ -z "`cut -d : -f 3 /etc/group | grep $IRCGID`" ] > do > IRCGID=$RANDOM > done > fi > > echo -n "$IRCUID" > ${T}/user > echo -n "$IRCGID" > ${T}/group > > cd ${S}/support > > use antispoof && { > > SEED="" > i=0 > until [ "$i" = "8" ] > do > > SEEDa="8" > SEEDb="8" > SEEDc="8" > > until [ "${SEEDb}" -lt "8" ] && > [ "${SEEDc}" -lt "8" ] && > [ "${SEEDa}${SEEDb}${SEEDc}" -gt "40" ] && > [ "${SEEDa}${SEEDb}${SEEDc}" -lt "176" ] > do > SEEDa=$(echo ${RANDOM} | cut -b 1) > SEEDb=$(echo ${RANDOM} | cut -b 1) > SEEDc=$(echo ${RANDOM} | cut -b 1) > done > SEED="${SEED}$(echo -en "\\${SEEDa}${SEEDb}${SEEDc}")" > i=$((i+1)) > done > > sed -i \ > -e "s/^#undef\tNOSPOOF$/#define\tNOSPOOF/" \ > -e "s/^#define\tRANDOM_SEED \"ChangeMe\"$/#define\tRANDOM_SEED \"${SEED}\"/" \ > config.h.dist > } > > sed -i \ > -e "s/^#undef\tOPER_KILL$/#define\tOPER_KILL/" \ > -e "s/^#undef\tOPER_RESTART$/#define\tOPER_RESTART/" \ > -e "s/^#undef TIMEDKLINES$/#define\tTIMEDKLINES\t60/" \ > -e "s/^#undef\tR_LINES$/#define\tR_LINES/" \ > -e "s/^#undef\tCRYPT_OPER_PASSWORD$/#define\tCRYPT_OPER_PASSWORD/" \ > -e "s/^#undef\tCRYPT_LINK_PASSWORD$/#define\tCRYPT_LINK_PASSWORD/" \ > -e "s/^#undef\tIRC_UID$/#define\tIRC_UID\t$IRCUID/" \ > -e "s/^#undef\tIRC_GID$/#define\tIRC_GID\t$IRCGID/" \ > -e "s/^#undef USE_SERVICES$/#define\tUSE_SERVICES/" \ > config.h.dist > > use zlib && sed -i -e "s/^#undef ZIP_LINKS$/#define\tZIP_LINKS/" config.h.dist > > cd .. > > use zlib && myconf="--with-zlib" || myconf="--without-zlib" > use ipv6 && myconf="$myconf --with-ip6" || myconf="$myconf --without-ip6" > > ./configure \ > --prefix=/usr \ > --host=i686-pc-linux-gnu \ > '--mandir=${prefix}/share/man' \ > --sysconfdir=/etc/ircd \ > --localstatedir=/var/run/ircd \ > --logdir=/var/log \ > $myconf || die > > cd `support/config.guess` > emake LDFLAGS=-lm ircd iauth chkconf ircd-mkpasswd ircdwatch tkserv || die >} > >src_install() { > > cd `support/config.guess` > make \ > prefix=${D}/usr \ > ircd_conf_dir=${D}/etc/ircd \ > ircd_var_dir=${D}/var/run/ircd \ > ircd_log_dir=${D}/var/log \ > install-server install-tkserv || die > > fowners `cat ${T}/user`:`cat ${T}/group` /var/run/ircd > > cd ../doc > dodoc *-New alt-irc-faq Authors BUGS ChangeLog Etiquette example.conf \ > iauth-internals.txt INSTALL.appendix INSTALL.* LICENSE \ > m4macros README RELEASE* rfc* SERVICE* > docinto Juped > dodoc Juped/Advertisement Juped/ChangeLog.* Juped/INSTALL > docinto Juped/US-Admin > dodoc Juped/US-Admin/Networking > docinto Nets > dodoc Nets/IRCNet > docinto Nets/Europe > dodoc Nets/Europe/* > > exeinto /etc/init.d > newexe ${FILESDIR}/ircd.rc ircd > >} > >pkg_postinst() { > groupadd -g `cat ${T}/group` -o ircd > useradd -c "IRCd server user" -d /etc/ircd -g `cat ${T}/group` -o -s /bin/false -u `cat ${T}/user` ircd >}
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 64032
:
39593
| 39594