pkgsrc/chat/eggdrop/Makefile

93 lines
3.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.27 2007/09/07 22:12:10 jlam Exp $
2002-06-26 05:48:10 +02:00
Changes 1.6.17: - Lots of doc updates. - Added a "stripcodes" Tcl command. See doc/tcl-commands.doc for more information. - Bot idx's should be considered valid to tcl_valididx. - Always try to detect shared Tcl libraries before static ones. - We now correctly differentiate the +l user flag from the +l bot flag. - Cleaned up modules.c and the module configure stuff quite a bit. - Detect Tcl in $HOME/lib and $HOME/tcl/lib first, as to make it easier to allow users to override the system's Tcl version. - We now support module loading under Darwin (Mac OS X) and NeXT Step. - Don't try to call tcl_notes if the notes module isn't loaded. - Show a more descriptive error message when a listen socket can't be opened. - Fixed Tcl encoding issues with .tcl and .set. - Added a set of Finnish language files and a Finnish MOTD. - time_t isn't unsigned, and therefor %lu should not be used as a conversion specifier. - Fixed a gcc warning in dcc.c. - Added support for Quakenet channel modes. - Removed an invalid killsock() in dcc.c. - Fixed extra spaces being written to chan file. - Reworked 'make config' / module configure process. - Op (+o) implies halfop (+l) now. - Cleaned up and optimized rmspace() and fixfrom(). - Updated recomended Tcl version to 8.4.6. - Fix behavior of the BCST bind. BCST is now correctly triggered for dccbroadcasts, as well as when a bot "says" something on a channel. See doc/tcl-commands.doc for more information. - Remove some unneeded casts. - Fixed performance issues with mv/cp when a lot of files are in the file area. - Typo in doc/COMPILING-FAQ. It's LD_LIBRARY_PATH, not LB_LIBRARY_PATH. - Fix a possible issue with ident code. - Don't let .tcl mkdir create duplicate filedb entries. - Fixed a compile error related to varargs when using old Tcl versions. - Fixed a compile error on systems that don't have socklen_t. - Suppress configure warnings on systems that use newer versions of GNU coreutils.
2004-12-03 13:15:54 +01:00
DISTNAME= eggdrop1.6.17
PKGNAME= eggdrop-1.6.17
PKGREVISION= 1
CATEGORIES= chat
2002-06-26 05:48:10 +02:00
MASTER_SITES= ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/
EXTRACT_SUFX= .tar.bz2
2002-06-26 05:48:10 +02:00
MAINTAINER= pkgsrc-users@NetBSD.org
2002-06-26 05:48:10 +02:00
HOMEPAGE= http://www.eggheads.org/
COMMENT= IRC robot with TCL scripting and multi-channel ability
Changes 1.6.17: - Lots of doc updates. - Added a "stripcodes" Tcl command. See doc/tcl-commands.doc for more information. - Bot idx's should be considered valid to tcl_valididx. - Always try to detect shared Tcl libraries before static ones. - We now correctly differentiate the +l user flag from the +l bot flag. - Cleaned up modules.c and the module configure stuff quite a bit. - Detect Tcl in $HOME/lib and $HOME/tcl/lib first, as to make it easier to allow users to override the system's Tcl version. - We now support module loading under Darwin (Mac OS X) and NeXT Step. - Don't try to call tcl_notes if the notes module isn't loaded. - Show a more descriptive error message when a listen socket can't be opened. - Fixed Tcl encoding issues with .tcl and .set. - Added a set of Finnish language files and a Finnish MOTD. - time_t isn't unsigned, and therefor %lu should not be used as a conversion specifier. - Fixed a gcc warning in dcc.c. - Added support for Quakenet channel modes. - Removed an invalid killsock() in dcc.c. - Fixed extra spaces being written to chan file. - Reworked 'make config' / module configure process. - Op (+o) implies halfop (+l) now. - Cleaned up and optimized rmspace() and fixfrom(). - Updated recomended Tcl version to 8.4.6. - Fix behavior of the BCST bind. BCST is now correctly triggered for dccbroadcasts, as well as when a bot "says" something on a channel. See doc/tcl-commands.doc for more information. - Remove some unneeded casts. - Fixed performance issues with mv/cp when a lot of files are in the file area. - Typo in doc/COMPILING-FAQ. It's LD_LIBRARY_PATH, not LB_LIBRARY_PATH. - Fix a possible issue with ident code. - Don't let .tcl mkdir create duplicate filedb entries. - Fixed a compile error related to varargs when using old Tcl versions. - Fixed a compile error on systems that don't have socklen_t. - Suppress configure warnings on systems that use newer versions of GNU coreutils.
2004-12-03 13:15:54 +01:00
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ENV+= TCLLIB="${PREFIX}/lib" TCLINC="${PREFIX}/include"
PKG_OPTIONS_VAR= PKG_OPTIONS.eggdrop
PKG_SUPPORTED_OPTIONS= inet6
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
PLIST_SUBST+= NOIPV6="@comment "
.else
PLIST_SUBST+= NOIPV6=
.endif
2002-06-26 05:48:10 +02:00
EGDIR= ${PREFIX}/share/examples/eggdrop
CONF_FILES= ${EGDIR}/eggdrop.conf ${PKG_SYSCONFDIR}/eggdrop.conf
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
2002-06-26 05:48:10 +02:00
post-patch:
cd ${WRKSRC} && ${SED} -e 's,modules/,${PREFIX}/lib/eggdrop/,' \
Update to version 1.6.13. Patches provided by Sergey Svishchev <svs+pr at grep dot ru> in PR pkg/19869. Changes: 1.6.13 (22 November 2002) ========================= - doc/MODULES updates - fixed utf-8 handling for config file strings (such as realname) - added a proc to alltools that returns the ordinal number for a number - added support for EMFILE (errno 24 - Too many files open) in neterror() - fixed the list format returned by tcl_channel_info() - don't ban users when not going to kick in refresh_ban_kick() - added a stacking limit for fastdeq - made the modes-per-line limit definable in src/chan.h - [ban/exempt/invite]-time were not being saved to the channel file - halfops were not honored in flush_modes() - fixed cosmetic problems with logging in some irc module commands - exported tell_bottree() to modues - optimized logging functions - removed eggdrop.advanced.conf and eggdrop.simple.conf - adding a missing killsock and lostdcc in eof_dcc_send() and eof_dcc_get() - fixed the logic in check_this_member() - made the timestamp style definable in src/eggdrop.h - added a missing return in bot_actchan() - fixed a problem with 'connect' and 'control' where the script would abort prematurely - don't "want ops" in modeless (+) channels - tell the user to set 'my-ip' when hostname self-lookup fails - improved access checking in -host/+host - fixed a possible buffer overflow in raw_dcc_resend_send() - fixed a missing escape in some regexps in misc/modconfig - channel set #chan chanmode $var corrupted $var in Tcl8.x - don't log "joined #chan but didn't want to" in certain cases where the channel was newly removed or set inactive - cosmetic changes to share_stick_[exempt/invite/ban] - msg_key and msg_invite did not work properly for !channels - show the number of hops in .trace's output - use the proper dynamic lib extention on Mac OSX - return 5 from dccsend if the file exists in the temp directory and copy-to-tmp is enabled - fixed a possible exploit in reaffirm_owners() - friends/ops/bots are now correctly unbanned when a ban is set on a - channel that matches their host - compile fix for systems that do not support snprintf() - fixed a bug where if the bot is kicked while channel information is - still being received, the bot will think it's still on the channel and not rejoin - removed names parsing, as it causes many problems and was only added for compatability with an old version of unrealircd - more broken dprintf's in irc commands - fixed a broken dprintf in cmd_kick() - made [ban/invite/exempt]-time a channel int - documentation updates related to the PUBM bind 1.6.12 (26 July 2002) ===================== - reverted the sockfix patches from 1.6.11 1.6.11 (26 July 2002) ===================== - need-[limit/invite/unban/key] work now - fixed a problem with 'connect' and 'control' where the script would abort prematurely - improved the logic in cmd_mnsban when specifying what happen to remove and where to remove it from - fixed cmd_kickban so it works - fixed a bug causing "[HH:MM] !!! OVER MAXIMUM <queue> QUEUE" to be - logged to LOG_SVROUT - log PINGs/PONGs sent to the server in LOG_SVROUT - some small changes to make eggdrop work with tcl8.4b1 (it won't work with tcl8.4a1 or a2 anymore though) - fixed a crash while doing .kickban -nick - the return values of uname() are now properly checked - added handlen friendly code to various commands (this is a new patch to replace the handlen friendly patch reverted in 1.6.10 - don't show +inactive channels in a remote .who - changed the .status output a bit (includes the name of the config file now) - msg_whois should require an argument. - added support for halfops (channel mode +h) - don't allow channels containing commas to be added.. also made an error message more clear - updates to doc/MODULES - more doc updates - fix for !channels when people quit or change nicks - made all the commands use CHANMETA instead of hardcoding channel types - added 'channel get <chan> <setting>' (backported from 1.7) - uptime.mod will not unload now once loaded (this prevents you from losing your stats on a .restart .. to remove, you have to .die) - uptime.mod now sends the proper pid and also won't send garbage if the bot currently isn't on a server - updated slennox's sentinel.tcl to the latest version - added support for +r on Undernet's ircu 2.10.11 - fixed a crash in seen.mod with long channel names - added support for the +C channel mode (noctcp) on QuakeNet's ircu
2003-01-16 09:23:45 +01:00
< eggdrop.conf > eggdrop.conf.dist.new
2002-06-26 05:48:10 +02:00
post-configure:
cd ${WRKSRC} && ${MAKE} config
do-install: do-install-program
do-install-program:
${INSTALL_PROGRAM} ${WRKSRC}/eggdrop ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/doc/man1/eggdrop.1 ${PREFIX}/${PKGMANDIR}/man1/
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/eggdrop.conf.dist.new ${EGDIR}/eggdrop.conf
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/eggdrop
cd ${WRKSRC}/doc/html && ${INSTALL_DATA} *.html \
${PREFIX}/share/doc/html/eggdrop
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/eggdrop
Changes 1.6.17: - Lots of doc updates. - Added a "stripcodes" Tcl command. See doc/tcl-commands.doc for more information. - Bot idx's should be considered valid to tcl_valididx. - Always try to detect shared Tcl libraries before static ones. - We now correctly differentiate the +l user flag from the +l bot flag. - Cleaned up modules.c and the module configure stuff quite a bit. - Detect Tcl in $HOME/lib and $HOME/tcl/lib first, as to make it easier to allow users to override the system's Tcl version. - We now support module loading under Darwin (Mac OS X) and NeXT Step. - Don't try to call tcl_notes if the notes module isn't loaded. - Show a more descriptive error message when a listen socket can't be opened. - Fixed Tcl encoding issues with .tcl and .set. - Added a set of Finnish language files and a Finnish MOTD. - time_t isn't unsigned, and therefor %lu should not be used as a conversion specifier. - Fixed a gcc warning in dcc.c. - Added support for Quakenet channel modes. - Removed an invalid killsock() in dcc.c. - Fixed extra spaces being written to chan file. - Reworked 'make config' / module configure process. - Op (+o) implies halfop (+l) now. - Cleaned up and optimized rmspace() and fixfrom(). - Updated recomended Tcl version to 8.4.6. - Fix behavior of the BCST bind. BCST is now correctly triggered for dccbroadcasts, as well as when a bot "says" something on a channel. See doc/tcl-commands.doc for more information. - Remove some unneeded casts. - Fixed performance issues with mv/cp when a lot of files are in the file area. - Typo in doc/COMPILING-FAQ. It's LD_LIBRARY_PATH, not LB_LIBRARY_PATH. - Fix a possible issue with ident code. - Don't let .tcl mkdir create duplicate filedb entries. - Fixed a compile error related to varargs when using old Tcl versions. - Fixed a compile error on systems that don't have socklen_t. - Suppress configure warnings on systems that use newer versions of GNU coreutils.
2004-12-03 13:15:54 +01:00
cd ${WRKSRC}/doc && ${INSTALL_DATA} BANS BOTNET FIRST-SCRIPT MODULES \
PARTYLINE USERS TRICKS TEXT-SUBSTITUTIONS tcl-commands.doc \
${PREFIX}/share/doc/eggdrop
${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop
${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/help
${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/language
${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/scripts
${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/help/msg
${INSTALL_DATA_DIR} ${PREFIX}/share/eggdrop/help/set
2002-06-26 05:48:10 +02:00
${INSTALL_DATA} ${WRKSRC}/language/core.*.lang \
${PREFIX}/share/eggdrop/language/
cd ${WRKSRC}/help && ${INSTALL_DATA} cmds1.help cmds2.help core.help \
${PREFIX}/share/eggdrop/help/
cd ${WRKSRC}/help/set && ${INSTALL_DATA} cmds1.help \
2002-06-26 05:48:10 +02:00
${PREFIX}/share/eggdrop/help/set/
cd ${WRKSRC}/scripts && ${INSTALL_DATA} CONTENTS *.tcl autobotchk \
botchk weed ${PREFIX}/share/eggdrop/scripts/
2002-06-26 05:48:10 +02:00
2004-03-11 07:55:22 +01:00
.include "../../lang/tcl/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
2002-06-26 05:48:10 +02:00
.include "../../mk/bsd.pkg.mk"
.if defined(NOPIC)
BUILD_TARGET= static
PLIST_SUBST+= NOPIC="@comment "
2002-06-26 05:48:10 +02:00
.else
BUILD_TARGET= eggdrop
PLIST_SUBST+= NOPIC=
2002-06-26 05:48:10 +02:00
do-install: do-install-modules
do-install-modules:
${INSTALL_DATA_DIR} ${PREFIX}/lib/eggdrop
cd ${WRKSRC} && ${INSTALL_DATA} assoc.so blowfish.so channels.so \
compress.so console.so ctcp.so filesys.so irc.so notes.so \
seen.so server.so share.so transfer.so uptime.so wire.so \
${PREFIX}/lib/eggdrop
.if empty(PKG_OPTIONS:Minet6)
cd ${WRKSRC} && ${INSTALL_DATA} dns.so ${PREFIX}/lib/eggdrop
.endif
cd ${WRKSRC}/src/mod && ${FIND} . -name "*.lang" -exec ${INSTALL_DATA} "{}" \
${PREFIX}/share/eggdrop/language ";"
2002-06-26 05:48:10 +02:00
.endif