pkgsrc/net/mldonkey/Makefile.common

44 lines
1.2 KiB
Text
Raw Normal View History

# $NetBSD: Makefile.common,v 1.49 2013/12/28 11:03:26 jaapb Exp $
#
2009-02-16 14:11:40 +01:00
# used by net/mldonkey/Makefile
# used by net/mldonkey-gui/Makefile
DISTNAME= mldonkey-3.1.3
CATEGORIES= net
Update mldonkey and mldonkey-gui to 2.7.4: pkgsrc: ulimit in startup script not necessary any longer, code now uses setrlimit. src: 2006/02/26: version 2.7.4 = tag release-2-7-4 2006/02/25 4928: BT: Fix invalid encoding in announce URL (darkfader) - removed old, broken version and added new version 2006/02/23 4934: FileTP: Small improvements - fix download restart bug when core is restarted, sources where not loaded - save referer values to files.ini - display amount of transfered data in downloaders list - display source IP and Countrycode in HTML downloaders list - display filesize in GUI - display number of sources in GUI 4933: BT: Display number of sources in GUI 2006/02/21 4928: BT: Fix invalid encoding in announce URL (darkfader) 4929: Do not print password_empty warning if enable_user_config true 4926: Runinfo: Warn about not-working DNS resolution, /dev/urandom detection was not disabled if --disable-donkeysui is used 2006/02/20 4922: OpenBSD: Small change for patch 4920 4921: MinGW: show current DL & UL stats in console title (Schlumpf) 4909: Print warning messages when run on non-supported operating systems currently for example Windows 95/98/ME (Schlumpf) 4920: Cleanup included header files in C code (Schlumpf) 2006/02/17 4910: EDK: Use updated protocol information when parsing consecutive messages (sam_dennis) 4915: Log: Small cleanups 4918: some syntax and comment cleanups in stubs_c.c (Schlumpf) 2006/02/13 4906: MinGW: improve uname output (Schlumpf) 4908: Configure: Fix for Beos, allow use of Dragonfly BSD 2006/02/11 4883: Mac OS X: Fix for broken Apple cpp-3.3 4902: EDK: Stub respond to directory browsing requests (sam_dennis) 4905: Update for patch 4823: add another -fno-fomit-frame-pointer in config/Makefile.in to avoid breaking CryptoPP (mikeX) 4903: EDK: Remove obsolete donkeyNeighbours (thx to sam_dennis) 4907: EDK: Fixed copy/paste error in emule miscoptions1 reading (sam_dennis) 2006/02/10 4904: Configure: Raise required autoconf version to 2.55 due to AC_MSG_FAILURE 2006/02/09 4892: Fix make when CXXFLAGS is defined (mikex) 4894: EDK: Support "new ed2k meta tags" to allow browsing shared directories of newer eMule clients (sam_dennis) 4891: Configure: Override system-installed Ocaml and force local compile Use ./configure --enable-force-ocaml to force MLDonkey to compile Ocaml, regardless if the system has Ocaml already installed or not. --enable-ocamlver=CVS uses a CVS checkout of Ocaml HEAD. 4885: EDK: Show correct IP of indirect clients in uploader list 2006/02/06 4879: EDK: Support for sources in ed2k:// links - example: ed2k://|file|a.txt|1|AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA|/|sources,1.0.0.0:4662|/ 4849: EDK: Fix hashing of newly shared files - avoid hashing shared files twice - avoid problems while hashing big files - remove obsolete compute_md4_delay option 4878: Addition to patch 4875 (conditional bzip2 support using cpp) 2006/02/05 4877: BT: Recognize Ktorrent clients (CruX, zet) 4876: EDK: Remove obsolete option random_order_download 4875: conditional bzip2 support using cpp (pango) 4870: runinfo: add connected_user and check empty PW (schlumpf) 4872: Fix gd detection on NetBSD, use data from gdlib-config MinGW compile-guide was updated, gdlib-config has to be changed 4871: Optimize some Printf.sprintf "%s" code 4869: Remove obsolete redirector code http://mldonkey.sourceforge.net/Redirector 4856: reverse patch: configure: disable iconv by default on MinGW it is not necessary anymore 2006/02/04 4867: Use setrlimit to raise allowed ulimit open files 2006/02/03 4863: GUI/Multiuser: Prevent kill by users other than admin 4862: EDK: Fix broken import of eMule temp Files (import_temp) (schlumpf) 4860: Multiuser: print warning if admin password is empty - user admin is re-created if deleted, it has to be present in any case because some commands are only available for admin, like users, remove_user and kill - create structure for startup messages, displayed on GUI, HTML, Telnet 4859: Multiuser: Only user "admin" is allowed to change options if the new option enable_user_config (default true) is set to false 4858: HTML: Update some links to mldonkey.sf.net 4857: SIGUSR1 & SIGUSR2 do not exist on Windows 4856: configure: disable iconv by default on MinGW 4853: Fix HTML errors on rss command output (unease) 2006/02/02 4851: Support system signals SIGUSR1 & SIGUSR2 SIGUSR1 saves options SIGUSR2 performs garbage collection 4850: Fixed bitprint hashing for files > 4GB (thx to zet) mld_hash: implement SIGINT and SIGTERM signals 2006/01/29 4844: Fix Solaris compile broken since DonkeySUI patch 4830: Update Wiki links New Wiki URL: http://mldonkey.sourceforge.net New Forum URL: http://mldonkey.sourceforge.net/forums 4843: HTML: Improve output of rss command 4842: Some logfile stuff 4841: Create new dir web_infos for web_infos files, BT: do not save .torrent or announce.* all files downloaded by web_infos go to $MLDONKEY_DIR/web_infos to avoid downloading files twice move files from $MLDONKEY_DIR into that new dir 4826: improve error message due to corrupt config files (schlumpf) 4821: improve display of sysinfo (schlumpf) 2006/01/26 4816: Update Ocaml-RSS and Xml-light to current versions 4827: longhelp cleanup (anhi) 4823: EDK: CryptoPP optional, disable with --disable-donkeysui Makefile: link CryptoPP stuff only in binaries which need it Buildinfo: show compiler versions Configure: display compiler versions (schlumpf) Configure: if iconv checking fails continue with disabled iconv Configure: do not use bzip2 if bzip.h is not found (FLI4L buildroot) 2006/01/25 4820: Move CommonGraphics to DriverGraphics, check libgd version Configure: Check if libgd > 2.0.14 is installed NetBSD: added paths for libgd package NetBSD: adjusted stat command to properly read SCM date move build-, run-, and diskinfo command to driver module (thanks to SchAmane)
2006-02-27 23:51:22 +01:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mldonkey/}
EXTRACT_SUFX= .tar.bz2
2013-07-18 19:09:25 +02:00
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mldonkey.sourceforge.net/Main_Page
COMMENT= Free peer-to-peer client with eDonkey support and more
LICENSE= gnu-gpl-v2
DISTINFO_FILE= ${.CURDIR}/../../net/mldonkey/distinfo
2012-03-29 13:36:43 +02:00
PATCHDIR= ${.CURDIR}/../../net/mldonkey/patches
GNU_CONFIGURE= yes
2006-05-12 09:55:32 +02:00
USE_LANGUAGES= c c++
USE_TOOLS+= gmake perl autoconf
MAKE_JOBS_SAFE= no
CONFIGURE_ENV+= WGET=""
CONFIGURE_ENV+= ac_cv_prog_WGET="no"
Update to 2.8.7: 2007/06/03: version 2.8.7 = tag release-2-8-7 5988: BT: Completely parse handshake packet of newer BT clients (thx to Berni) - this patch should fix the serious performance problem with BT downloads 2007/06/02 5987: GeoIP: Small cosmetical fix for loading GeoIP.dat (pango) 5986: Fix GC problem in bz2 code (pango) 2007/06/01 5891: Disconnect clients we download from when a file is queued/paused 5905: Replace old DirectConnect module with new DC++ code (alffa) - enable it with ./configure --enable-directconnect - bzip2 support is manditory - preliminary docs: http://mldonkey.sourceforge.net/DirectConnect ------------------------------------------------------------------------------- 2007/06/01: version 2.8.6 = tag release-2-8-6 5984: EDK: Small log updates 2007/05/31 5982: Save archives used for ini files backup with rights 600 (pango) 5981: EDK/Swarming: Download first 9MB first for preview, not 10MB to avoid downloading second chunk too early (pango) 5972: GeoIP: Load GeoIP.dat into RAM (pango) 2007/05/28 5976: Search for autoconf261 in ./configure 2007/05/27 5940: GeoIP: Reduce disc access to lower CPU usage - store computed country values in client/server structures - EDK: fix a bug where a firewalled client was displayed with IP 0.0.0.0 - new verbosity level "geo" to monitor access to GeoIP.dat 2007/05/23 5961: Include compile patch for Ocaml 3.08.3 5956: Remove unused files src/networks/donkey/donkeyIndexer.ml* 2007/05/22 Updated Mozilla protocol handler to version 2.1 - original source from http://www.informatik.uni-oldenburg.de/~dyna/mldonkey 2007/05/21 5944: configure: Allow use of Ocaml 3.10.0, keep 3.09.3 as default 2007/05/08 5897: FileTP: Support HTTP downloads of files > 1GB 5815: Unix32: Override system umask to force correct function of option create_file_mode (pango) 5912: Extend patch 5817: "Code updates for Ocaml 3.10.0beta compatability" to Ocaml 3.11 5910: EDK: Revoke upload slot when client asks for blocks positioned after EOF 5908: Fix commit when incoming filesystem allows more than 16M chars 5906: Telnet/BT: Display clients country code without HTML in vd <num> 2007/04/28 5903: commonPictures: Update favicon.ico (meto) 5902: Updated italian translation for mldonkey (surricani) 5901: Updated german translation for mldonkey - taken from german wiki: http://www.mldonkey.org/wiki/index.php/Mlnet_strings 5900: Updated italian translation for mldonkey (surricani) 2007/04/26 5898: Updated italian translation for mldonkey (surricani) 2007/04/25 5892: Updated italian translation for mldonkey (surricani) 2007/04/24 5888: Partial italian translation for mldonkey (surricani) stored in ./distrib/i18n/mlnet_strings.it_IT.UTF-8 5718: Improve command "nu" - close all upload slots - do not give an upload slot to clients in pending slot - restrict command "nu" to admin users
2007-06-07 06:49:50 +02:00
CONFIGURE_ARGS+= --enable-directconnect
LDFLAGS+= ${PTHREAD_LDFLAGS}
MAKE_ENV+= BUILDLINK_PREFIX.pthread=${BUILDLINK_PREFIX.pthread}
CONFIGURE_ARGS+= --enable-pthread-lib
UNLIMIT_RESOURCES= stacksize
Update mldonkey* to 2.9.3. pkgsrc change: Depend on ocaml-3.10.1 or newer: Fixes a segfault problem on amd64. Changes since 2.9.2: 2008/01/16: version 2.9.3 = tag release-2-9-3 6379: bwstats: Show downloaded bytes (pango) 2008/01/16 6377: Configure: Make Ocaml 3.10.1 the default compiler - Ocaml 3.10.1 fixes crashes in MLDonkeys eDonkey module when compiled with Ocaml 3.10.0 on 64bit systems 2008/01/15 6373: Swarmer: Ignore received data when file is queued 2008/01/08 6367: FileTP: Fix bug when starting downloads > 4GB via dllink 2008/01/07 6364: MinGW: Fix broken share priorities (thx to vbnuy6) 6365: HTML: Use option max_name_len in upstats for unhashed files 2008/01/04 6362: Small Geoip updates - new countries + flags: Saint Barthelemy, Saint Martin - updates flags: Georgia, Democratic Republic of the Congo, Western Sahara, Lesotho 2008/01/02 6361: GUI: Send console messages to admin users after unsharing a file 6349: DirectConnect: Correctly report total shared filesize to server (LuCasn) 6360: BT: New command print_torrent <file_num>, new link in HTML, upstats to display .torrent details 2007/12/19 6351: Allow compilation with upcoming Ocaml 3.10.1 2007/12/17 6342: HTML: fix broken vm output in Opera (schlumpf) 6346: Environment variables for file_started_cmd (see option help text) 2007/12/13 6343: gcc-4.3 compile fix for CryptoPP (brian m. carlson) 2007/12/09 6337: Fix inequality test for option html_mods_theme (pango) 2007/11/03 6255: Fix compile warnings for GTK2 GUI and DC++ (pango)
2008-02-17 09:58:39 +01:00
# needs 3.10.1 or newer to work correctly on NetBSD/amd64
BUILDLINK_API_DEPENDS.ocaml+= ocaml>=3.10.1
pre-configure:
cd ${WRKSRC}/config && autoconf
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
Update to 2.6.4: 2005/09/04: spiralvoice (version 2.6.4 = tag release-2-6-4) 4392: Print "Core started" on stdout even if logging is enabled Fixes problems when MLDonkey is spawned by a GUI 2005/09/03: spiralvoice 4247: memstats: BT/FT/GNUT/G2: initial memstats, ALL: show nr of old_files, BT: nr of torrent files 4390: Mail: Print incoming path if !!url_in_mail is used 4389: BT: Fix core exit if dirs of a shared multifile torrent are not writable 4368: new option: create_file_sparse true|false, this works only for files on NTFS drives in MinGW compiled MLDonkey (thanks to zet) 2005/09/01: spiralvoice 4385: EDK: Preserve untested servers (by pango) 4351: optimize ip blocking lists (by pango) 4376: EDK: Re-enable result_done (already downloaded) in search results (by zet) 4126: Improved log_file handling * there is now a default log_file: mlnet.log, old downloads.ini is *not* updated * its default log_file_size is 2MB, this is checked only on core start, if log_file is bigger it will be resetted * logging will always be appended to log_file * new command "clear_log" to reset log_file while the core is working * new command "open_log" to reopen log after close_log * removed command "log_file", same can be achieved through "set log_file <file>" 4384: HTML: Add "Import Serverlist" in servers, clean third button row (by schlumpf) 4365: Disable console "X" close button on MinGW, second version (by CML) 4382: Solve libgd configure in mandrake 10.0 4381: better differentiation of eDonkey and BT Stats Table (by schlumpf) 4380: some info for SCM Version (CVS co Date/ SVN revision) (by schlumpf) 4379: Fix compile error when libgd is not present 4378: Longhelp: Better description for add_user 4377: Better description for shared_directories in downloads.ini 4356: EDK: Improved server.met handling / fix contact.dat loading * Changed user agent from "MLdonkey" to "MLDonkey", solves problem when downloading files from www.gruk.org and www.srv1000.com * MLDonkey new recognizes links like ed2k://|serverlist|http://server/file.ext|/ * "servers" command now takes URLs * if period in web_infos is zero the file is only loaded during core start (as requested by the owner of www.gruk.org) * in all places where a filename or URL for a server.met can be used this file can also be compressed with gz/bz2/zip * automatically replace old default server.met in web_infos ("server.met", 24, "http://ocbmaurice.dyndns.org/pl/slist.pl/server.met?download/server-best.met"); with fake servers free list from gruk.org: ("server.met", 0, "http://www.gruk.org/server.met.gz"); * fixed bug which prevented loading Overnet contact.dat file in web_infos 2005/08/29: spiralvoice 4368: Use sparse files on MinGW/NTFS (by zet) 4370: BT/Win32: fix multifile hashing (by Amorphous) 2005/08/28: spiralvoice 4366: HTML: more maintainable html_mods styles (by pango) 4367: Improve logging 4361: New command: uptime Lots of improvements for MinGW, this platform now supports files > 2GB, threads and libgd generated statistics. Here you will find compilation instructions: http://mldonkey.berlios.de/modules.php?name=Wiki&pagename=Windows 4342: Large_file support for mld_hash and MinGW MLDonkey core (by zet) 4358: Add thread support for MinGW (by zet) 4362: configure.in support for libgd on MinGW/FreeBSD 4349: increase filedescriptor limit for mingw (by zet) 4365: Disable console "X" close button on MinGW (by zet) 2005/08/26: spiralvoice 4360: Configure: Test for nl_langinfo(CODESET) 4359: Upload: Give upload slot truely randomly (by pango) 4347: Improve exit codes, codes were inspired by sysexits.h 4345: Code clean: Optimize redundant time_to_string functions 4357: Rename ed2k_hash to mld_hash 4344: Improve ./configure checks (bzlib.h, iconv on Windows) --------------------------------------------------------------------- 2005/08/21: spiralvoice (version 2.6.3 = tag release-2-6-3) 4254: Patch reverted, did not work "html_mods: Table data is incorrectly centered" 4336: Improve some log file messages 4321: BT: fixed "make_torrent produce corrupted files on Windows" (by beedauchon) 4335: Buildinfo: Fix bug if Bzip2 version string is empty (by beedauchon) 4329: HTTPClient: Implement retries for failed requests 4319: Fix compile if libbz2 is not available, new configure option: --disable-bzip2 4334: BT/FileTP: Some progress on cancel bug (by kempston) 4333: send ip blocked addr state to gui, compute_torrent from gui (by z) 4332: Let configure fail if GNU make is not installed 2005/08/18: spiralvoice 4323: HTML: Search results: new colums for Bitrate, Codec and length 4324: Log: Improve output for verbosity "hid" 4322: EDK: compatibleclient 40 -> Shareaza 4320: Fix compile on FreeBSD < 5.3 2005/08/15: spiralvoice 4317: Updated ./configure for compiling lablgtk2 with --enable-batch 4316: Updated ./distrib/Install.txt for Ocaml 3.08.4 and new GUI options 4292: html_mods: Match styles default frameHeight with the common default 4314: Allow compiling with Ocaml 3.08.4 Compiling with 3.08.3 still works 4312: BT: Allow seeding (by beedauchon) 4311: BT: create_torrent: default_tracker and default_comment (by beedauchon) 4309: GUI: send ed2k/bt network u/d totals (by z) 4308: Gnutella/G2: Fix commit if no TigerTree is available 4305: buildinfo: Print some system internals 4304: EDK: Fix disconnect state with verbosity = "hid" 4297: Create ini file backups on shutdown Note: file_sources.ini is never saved, it makes no sense to keep this file. New options: * backup_options_format, default "tar.gz", "zip" can also be used * backup_options_delay, default 0 How often (in hours) should a backup of the ini files be written into old_config. A value of zero means that a backup is written only when the core shuts down. * backup_options_generations, default 10 Define the total number of options archives in old_config. Command save got two new parameters: * "save all" saves options, sources and creates a ini file backup * "save backup" speaks for itself;-) --------------------------------------------------------------------- 2005/08/11: spiralvoice (version 2.6.2 = tag release-2-6-2) 4296: BT: Fix options parsing --------------------------------------------------------------------- 2005/08/09: spiralvoice (version 2.6.1 = tag release-2-6-1) 4291: EDK: Better logging for unknown compatibleclient values 4290: BT: Some small fixes for messages interested and cancel by beedauchon 4289: LOG: Improve verbosity "hid" 4287: Better clear Fifo buffers, by bogeyman 4268: Web/Gui: free core's buffer allocated by vd # and gui by bogeyman 2005/08/08: spiralvoice 4285: IPBlock: Server support * display in vm/vma if a server has a blocked IP * prevent connections to a IP blocked server, in EDK case this resulted in a LowID connection 4284: Remove whitespaces / Some logging changes 2005/08/07: spiralvoice 4279: MinGW: HDD statistics support 4281: Remove white spaces / Some logging stuff 4251: HTML: few fixes / new option html_frame_border true|false 4278: Windows: Fix bug creating work dirs in empty dir 2005/08/06: spiralvoice 4276: IPBlock: Never block local IPs even if they are in blocklist 4274: Use relative path if downloads.ini is present 2005/08/05: spiralvoice 4272: HTML: Cursor focus in input field 4271: GTK2: Fix compile bug in src/gtk2/chat/chat_art.ml 4155: Let MLDonkey create its data in $HOME/.mldonkey Usage instructions: * if the core is started in a directory where downloads.ini exists this directory will be used, this is the same behaviour as before * on Windows the current directory will always be used, this is consistent with eMule * on other systems $HOME/.mldonkey will be created and used, this is consistent with eDonkey, aMule and Unix standards * if variable MLDONKEY_DIR is used that directory has priority, to simulate the behaviour without this patch use: export MLDONKEY_DIR="." && ./mlnet 2005/08/04: spiralvoice 4270: Overnet: Convert local IPs sent by OV clients to real IPs 4269: IPBlock: Several fixes, better zip file support 4264: Fasttrack: Force commit of all complete files 4258: BT: Statistics, recognize more clients, min_interval, torrents/old and more... This patch was done by Beedauchon, it incorporates weeks of work from him. * move .torrent to torrents/old if the file is not shared anymore * new command rm_old_torrents: delete all files in torrents/old * eDonkey like statistics for BT clients (csbt command) * compute_torrent and make_torrent can put a comment into the .torrent file * MLdonkey computes a BT-compatible client_uid starting with "-ML" * parse more fields from .torrent files and display them in HTML interface * Tracker: replace "/tracker" by "/announce" * Tracker: add "/scrape" * Multitracker support for downloading 2005/08/02: spiralvoice 4263: Fasttrack: Force bootstrapping nodes 2005/08/01: spiralvoice 4261: HTML: Add DL button - opens dialog for entering links (by omgwtf2) 4260: IPblock: Enable IP blocking for Overnet and HTTP server (=BT Tracker) (by beedauchon) 4257: Kick uploaders which send no data for more than 1 minute 4256: Print message if glibc version mismatch updates for buildinfo (version of libbz2, libz, libpng) 2005/07/29: spiralvoice 4255: HTML: updates for cs command 4254: html_mods: Table data is incorrectly centered 4253: HTML: New style Construction (by omgwtf2) 4251: few html fixes (reverted) (by beedauchon) 2005/07/28: spiralvoice 4250: Remove whitespaces from commonUploads.ml 4249: HTML: Links to fake check services in search results (by bogeyman) 2005/07/27: spiralvoice 4194: FileTP : Add support for "referer", error messages cleanup (by beedauchon) 4245: BT: Remove whitespace (by beedauchon) 4244: Change web_infos period to hours (this is a bugfix, no need to change ini files) new option: enable_mlnet_redirector 2005/07/26: spiralvoice 4243: FileTP: Clean lots of whitespaces 4031: HTML: relative refs in HTML output (by beedauchon) 4191: Access to disk data (free space, max file name length) This is first step implmenting this, checkout the disk command for debugging. 4242: IPBlock: Support guarding_full.zip 4241: Fix html_mods_vd_gfx_remove 4240: EDK: New option keep_downloaded_in_old_files 2005/07/23: spiralvoice 4184: support guarding.p2p in zip/gz/bz2 format bz2 segfaults on OpenBSD, therefore disabled see notes in the patch on how to compile with MinGW 2005/07/22: spiralvoice 4205: Improve logging with timestamps 2 (incomplete) 4204: Improve logging with timestamps (incomplete) 2005/07/21: spiralvoice 4195: GUI: Change configure options Now "./configure" compiles no GUI, "--disable-gui" is default. To use a GUI use "--enable-gui", this enables GTK2 GUI. Other options are: --enable-gui=newgui2 (use GTK2 GUI) --enable-gui=newgui1 (use GTK1 newgui) --enable-gui=oldgui (use GTK1 oldgui) Options like "--disable-newgui" or "--enable-gtk2" were removed. 2005/07/20: spiralvoice 4193: CommonGraphics : some whitespace cleanups 4190: Gdstats: Fix tag.png/jpg link output 4188: Overnet: Dont put our own ID in the buckets (by Bogeyman)
2005-10-06 13:50:03 +02:00
.include "../../graphics/gd/buildlink3.mk"
.include "../../lang/ocaml/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"