Ticket #25448: freepops-0.2.9-attempt.diff
File freepops-0.2.9-attempt.diff, 11.0 KB (added by ryandesign (Ryan Carsten Schmidt), 5 years ago) |
---|
-
Portfile
1 1 PortSystem 1.0 2 2 3 3 name freepops 4 version 0.0.18 5 revision 3 4 version 0.2.9 5 revision 0 6 checksums rmd160 c473bd9a523f7bc30dbcfa30c0f1e58418301d24 \ 7 sha256 3a065e30cafed03d9b6fdb28251ae5bf0d8aeb62181746154beecd25dc0c9cae \ 8 size 2065288 9 6 10 categories mail 7 11 license GPL-2 8 12 maintainers nomaintainer … … 16 20 is possible to get all your messages in your \ 17 21 favourite email client. 18 22 homepage http://freepops.sourceforge.net/en/ 19 master_sites sourceforge 20 checksums md5 71268cb9b05549be3db271014bcea5ca 23 master_sites sourceforge:project/freepops/freepops/${version} 21 24 platforms darwin 22 25 23 26 depends_lib port:curl \ … … 26 29 27 30 patchfiles patch-darwin 28 31 29 p re-configure{32 post-patch { 30 33 file copy ${filespath}/${name}.sh.in ${worksrcpath}/${name}.sh 31 34 reinplace "s%@PREFIX@%${prefix}%g" \ 32 35 ${worksrcpath}/${name}.sh \ … … 33 36 ${worksrcpath}/doc/freepopsd.1 \ 34 37 ${worksrcpath}/src/freepops.h \ 35 38 ${worksrcpath}/src/lua/freepops.lua 36 reinplace "s|@ARCHFLAGS@|${configure.cc_archflags}|" \37 ${worksrcpath}/configure.sh38 39 } 40 41 configure.env WHERE=${prefix} 39 42 configure.cmd ./configure.sh 40 43 configure.pre_args osx 44 configure.universal_args-delete --disable-dependency-tracking 41 45 42 46 use_parallel_build no 43 build.args WHERE=${prefix}/ \44 H=45 47 48 # Disable silent rules 49 build.args H= 50 46 51 destroot.args ${build.args} 47 52 post-destroot { 48 53 xinstall -d -m 0755 ${destroot}${prefix}/etc/rc.d -
files/patch-darwin
1 diff -ur ../freepops-0.0.18.orig/Makefile ./Makefile 2 --- ../freepops-0.0.18.orig/Makefile Mon Sep 27 03:34:12 2004 3 +++ ./Makefile Tue Oct 5 23:04:58 2004 4 @@ -57,23 +57,23 @@ 1 --- Makefile.orig 2008-06-14 04:21:25.000000000 -0500 2 +++ Makefile 2019-10-16 19:38:38.000000000 -0500 3 @@ -65,11 +65,11 @@ 4 $(H)mkdir -p $(PREFIX) 5 $(H)mkdir -p $(PREFIX)bin 5 6 $(H)mkdir -p $(PREFIX)share/freepops/lua/ 7 - $(H)mkdir -p $(DESTDIR)var/lib/freepops/lua_unofficial/ 8 - $(H)mkdir -p $(DESTDIR)var/lib/freepops/lua_updates/ 9 + $(H)mkdir -p $(PREFIX)var/lib/freepops/lua_unofficial/ 10 + $(H)mkdir -p $(PREFIX)var/lib/freepops/lua_updates/ 6 11 $(H)mkdir -p $(PREFIX)share/doc/freepops/ 7 12 $(H)mkdir -p $(PREFIX)share/man/man1/ 8 - $(H)mkdir -p $(DESTDIR) /etc/freepops13 - $(H)mkdir -p $(DESTDIR)etc/freepops 9 14 + $(H)mkdir -p $(PREFIX)etc/freepops 10 $(H)cp src/freepopsd$(EXECSUFFIX) $(PREFIX)bin 15 $(H)if [ ! -z "$(FLTKUI)" ]; then \ 16 mkdir -p $(PREFIX)lib/freepops/; \ 17 cp updater-ui/fltk/updater_fltk$(SHAREDEXTENSION) \ 18 @@ -89,9 +89,9 @@ 11 19 $(H)cp src/lua/*.lua modules/include/*.lua config.lua \ 12 20 $(PREFIX)share/freepops/lua/ 13 $(H)cp doc/freepopsd.1 $(PREFIX)share/man/man1/ 14 $(H)cp doc/manual*.pdf $(PREFIX)share/doc/freepops/ ||\ 15 cp doc/MANUAL.txt $(PREFIX)share/doc/freepops/ 16 - $(H)cp config.lua $(DESTDIR)/etc/freepops/ 21 # keep these in sync with win32 installer 22 - $(H)mkdir -p $(DESTDIR)var/lib/freepops/lua_updates/lxp 23 - $(H)mkdir -p $(DESTDIR)var/lib/freepops/lua_updates/browser 24 - $(H)mkdir -p $(DESTDIR)var/lib/freepops/lua_updates/soap 25 + $(H)mkdir -p $(PREFIX)var/lib/freepops/lua_updates/lxp 26 + $(H)mkdir -p $(PREFIX)var/lib/freepops/lua_updates/browser 27 + $(H)mkdir -p $(PREFIX)var/lib/freepops/lua_updates/soap 28 $(H)mkdir -p $(PREFIX)share/freepops/lua/lxp/ 29 $(H)mkdir -p $(PREFIX)share/freepops/lua/browser/ 30 $(H)mkdir -p $(PREFIX)share/freepops/lua/soap/ 31 @@ -118,7 +118,7 @@ 32 fi 33 $(H)cp doc/manual*.pdf $(PREFIX)share/doc/freepops/ || true 34 $(H)cp doc/MANUAL.txt $(PREFIX)share/doc/freepops/ || true 35 - $(H)cp config.lua $(DESTDIR)etc/freepops/ 17 36 + $(H)cp config.lua $(PREFIX)etc/freepops/ 18 37 19 38 uninstall: 20 - $(H)rm -f $(DESTDIR)/etc/freepops/config.lua 21 + $(H)rm -f $(PREFIX)etc/freepops/config.lua 22 $(H)rm -f $(PREFIX)share/doc/freepops/manual.ps 23 $(H)rm -f $(PREFIX)share/doc/freepops/manual-it.ps 24 $(H)rm -f $(PREFIX)share/man/man1/freepopsd.1 25 $(H)rm -f $(PREFIX)share/freepops/lua/* 26 $(H)rm -f $(PREFIX)bin/freepopsd$(EXECSUFFIX) 27 - $(H)rmdir $(DESTDIR)/etc/freepops 28 + $(H)rmdir $(PREFIX)etc/freepops 29 $(H)rmdir $(PREFIX)share/man/man1/ 30 $(H)rmdir $(PREFIX)share/doc/freepops/ 31 $(H)rmdir $(PREFIX)share/freepops/lua/ 32 diff -ur ../freepops-0.0.18.orig/doc/freepopsd.1 ./doc/freepopsd.1 33 --- ../freepops-0.0.18.orig/doc/freepopsd.1 Tue Sep 14 05:17:47 2004 34 +++ ./doc/freepopsd.1 Tue Oct 5 23:06:48 2004 35 @@ -104,10 +104,10 @@ 36 .\"sense only in a lan-wide installation. 39 $(H)rm -f $(DESTDIR)etc/freepops/config.lua 40 --- doc/freepopsd.1.orig 2008-05-28 16:18:42.000000000 -0500 41 +++ doc/freepopsd.1 2019-10-16 19:41:05.000000000 -0500 42 @@ -93,7 +93,7 @@ 43 \fIbasic\fR, \fIdigest\fR, \fIntlm\fR and \fIgss\fR. 44 .TP 45 \fB\-c\fR, \fB\-\-conffile \fRfile 46 -Users the specified configuration file instead of looking in default paths like 47 +User the specified configuration file instead of looking in default paths like 48 /etc/freepops/config.lua, ./config.lua and /usr/share/freepops/lua/config.lua 49 .TP 50 \fB\-\-statistics\-all 51 @@ -144,10 +144,10 @@ 52 .br 37 53 .SH FILES 38 54 .TP 39 -.I /usr/share/fre pops/lua/*40 +.I @PREFIX@/share/fre pops/lua/*55 -.I /usr/share/freepops/lua/* 56 +.I @PREFIX@/share/freepops/lua/* 41 57 Webmails access implementation 42 58 .TP 43 59 -.I /etc/freepops/config.lua … … 44 60 +.I @PREFIX@/etc/freepops/config.lua 45 61 Configuration file, interesting only for paths, addresses to modules binding, 46 62 and accept/reject policy on mail addresses 47 \".TP 48 diff -ur ../freepops-0.0.18.orig/modules/src/luafull/Makefile ./modules/src/luafull/Makefile 49 --- ../freepops-0.0.18.orig/modules/src/luafull/Makefile Sun Sep 26 02:28:13 2004 50 +++ ./modules/src/luafull/Makefile Tue Oct 5 23:04:58 2004 51 @@ -35,7 +35,7 @@ 52 -lbase64_lua -lstringhack_lua -lcurl_lua \ 53 -lluabind -lgetdate -lmlex -lportablesocket -lbase64 \ 54 -lregularexp -llog -llist \ 55 - -L/sw/lib/ -lexpat -lcurl -lcrypto -lreadline -lhistory \ 56 + -lexpat -lcurl -lcrypto -lreadline -lhistory \ 57 #-lcurses #-lncurses 63 .SH AUTHOR 64 --- src/Makefile.orig 2008-12-08 03:15:14.000000000 -0600 65 +++ src/Makefile 2019-10-16 19:45:40.000000000 -0500 66 @@ -133,8 +133,7 @@ 58 67 else 59 ifeq "$(OS)" "Windows"60 diff -ur ../freepops-0.0.18.orig/src/Makefile ./src/Makefile61 --- ../freepops-0.0.18.orig/src/Makefile Mon Sep 27 04:47:13 200462 +++ ./src/Makefile Tue Oct 5 23:04:58 200463 @@ -101,7 +101,7 @@64 68 ifeq "$(OS)" "Darwin" 65 69 LDFLAGS+=-L../modules/lib $(addprefix -l,$(LIBSTOLINK)) \ 66 -lgetopt -lm\67 - -lpthread -L/usr/lib -L/sw/lib -lexpat -lcurl\68 + -lpthread -lexpat -lcurl\69 -lcrypto -ldl -lssl -lcrypto -l z70 - -lm -lpthread -L/usr/lib $(EXPAT_LD_FLAGS) \ 71 - $(EXTRALIB_PREFIX)lib/libcurl.a -lldap \ 72 + -lm -lpthread $(CURL_LD_FLAGS) $(EXPAT_LD_FLAGS) -lldap \ 73 -lcrypto -ldl -lssl -lcrypto -lintl -liconv -Wl,-framework -Wl,CoreFoundation -lc -lz 70 74 else 71 75 ifeq "$(OS)" "Darwin-static" 72 diff -ur ../freepops-0.0.18.orig/src/freepops.h ./src/freepops.h 73 --- ../freepops-0.0.18.orig/src/freepops.h Thu Aug 26 04:50:37 2004 74 +++ ./src/freepops.h Tue Oct 5 23:05:55 2004 76 --- src/freepops.h.orig 2007-01-14 08:37:30.000000000 -0600 77 +++ src/freepops.h 2019-10-16 19:56:45.000000000 -0500 75 78 @@ -50,7 +50,7 @@ 76 79 #ifdef WIN32 77 80 #define FREEPOPS_SHARE "./" … … 81 84 #endif 82 85 83 86 #endif 84 diff -ur ../freepops-0.0.18.orig/src/lua/freepops.lua ./src/lua/freepops.lua 85 --- ../freepops-0.0.18.orig/src/lua/freepops.lua Mon Aug 30 02:43:40 2004 86 +++ ./src/lua/freepops.lua Tue Oct 5 23:07:37 2004 87 @@ -380,7 +380,7 @@ 87 --- src/lua/freepops.lua.orig 2007-10-28 04:26:46.000000000 -0500 88 +++ src/lua/freepops.lua 2019-10-16 20:01:51.000000000 -0500 89 @@ -67,7 +67,7 @@ 90 -- Config file loading. 88 91 local function load_config() 89 90 local paths = { 91 - "/etc/freepops/", 92 + "@PREFIX@/etc/freepops/", 93 "./", 94 os.getenv("FREEPOPSLUA_PATH") or "./" , 95 } 96 --- configure.sh.orig 2004-09-18 20:46:34.000000000 +1000 97 +++ configure.sh 2011-06-25 18:28:17.000000000 +1000 98 @@ -21,7 +21,6 @@ 99 } 100 101 set_default() { 102 -CC=gcc 103 LD=ld 104 AR=ar 105 STRIP=strip 106 @@ -34,7 +33,7 @@ 107 EXEEXTENSION= 108 STATICEXTENSION=.a 109 SHAREDEXTENSION=.so 110 -CFLAGS="-O2 -g3 -Wall -DHAVE_CONFIG_H -I$PWD" 111 +CFLAGS="-O2 -Wall -DHAVE_CONFIG_H -I$PWD" 112 HCFLAGS=$CFLAGS 113 LDFLAGS="" 114 HLDFLAGS=$LDFLAGS 115 @@ -51,10 +50,10 @@ 92 local conffile = os.getenv("FREEPOPSLUA_CONFFILE") 93 - local paths = { "/etc/freepops/", "./", os.getenv("FREEPOPSLUA_PATH") or "./" } 94 + local paths = { "@PREFIX@/etc/freepops/", "./", os.getenv("FREEPOPSLUA_PATH") or "./" } 95 96 local try_load = 97 function(filename) return 98 --- configure.sh.orig 2008-12-08 03:15:13.000000000 -0600 99 +++ configure.sh 2019-10-16 19:59:34.000000000 -0500 100 @@ -12,9 +12,7 @@ 101 linux-gnutls to compile on a linux host and install in /usr/local 102 using gnutls and not openssl 103 linux-slack to compile on a linux slack box (installs in /usr) 104 - osx to compile on a darwin host (sdk10.4u + custom expat: 105 - you can export the EXTRALIB_PREFIX variable pointing 106 - to the installation root of your expat installation) 107 + osx to compile on a darwin host 108 osx-static to compile on a darwin host (old osx versions) 109 obsd to compile on a openbsd host 110 fbsd to compile on a freebsd host 111 @@ -103,17 +101,9 @@ 116 112 set_osx() { 117 113 set_default 118 114 OS=Darwin 119 -CFLAGS="$CFLAGS -I/sw/include -DMACOSX" 120 -HCFLAGS="$HCFLAGS -I/sw/include -DMACOSX" 121 -LDFLAGS="$LDFLAGS -L/usr/lib -L/sw/lib -bind_at_load -framework Carbon" 122 -HLDFLAGS="$HLDFLAGS -L/usr/lib -L/sw/lib -bind_at_load" 123 +CFLAGS="$CFLAGS -DMACOSX @ARCHFLAGS@" 124 +HCFLAGS="$HCFLAGS -DMACOSX @ARCHFLAGS@" 125 +LDFLAGS="$LDFLAGS @ARCHFLAGS@ -bind_at_load -framework Carbon" 126 +HLDFLAGS="$HLDFLAGS @ARCHFLAGS@ -bind_at_load" 115 -OSX_SDK=/Developer/SDKs/MacOSX10.4u.sdk/ 116 -EXTRALIB_PREFIX=${EXTRALIB_PREFIX:-/Users/gares/freepops/} 117 -OSXV=10.4 118 -MACHOARCH=" -arch i386 -arch ppc -isysroot $OSX_SDK -mmacosx-version-min=$OSXV" 119 -CFLAGS="$CFLAGS -I${EXTRALIB_PREFIX}include -DMACOSX" 120 -HCFLAGS="$HCFLAGS -I${EXTRALIB_PREFIX}include -DMACOSX" 121 +CFLAGS="$CFLAGS -DMACOSX" 122 +HCFLAGS="$HCFLAGS -DMACOSX" 123 LUAFLAGS=" -DLUA_USE_MACOSX " 124 -LDFLAGS="$LDFLAGS -L${EXTRALIB_PREFIX}lib -Wl,-syslibroot,$OSX_SDK -mmacosx-version-min=$OSXV" 125 -EXEEXTENSION=".ppc-i386.$OSXV" 126 -FLTKLDFLAGS="-lfltk -framework Carbon -framework ApplicationServices" 127 -FLTKPOST="${EXTRALIB_PREFIX}bin/fltk-config --post" 127 128 } 128 129 129 130 set_osx_static() { 130 --- modules/src/curl_lua/Makefile.orig 2004-09-26 19:58:52.000000000 +1000131 +++ modules/src/curl_lua/Makefile 2011-06-25 18:41:30.000000000 +1000132 @@ -57,7 +57,7 @@133 134 curl_authopt.h:$(HEADER)135 $(H)cat $(HEADER) | grep "CURLAUTH_" | \136 - sed "s/#define *CURL/{\"/" | sed "s/ *\/\*.*\*\///" | \137 + sed "s/#define *CURL/{\"/" | sed -E "s/ *\/\*.*\*?\/?//" | \138 sed "s/ /\",/" | sed "s/$$/},/" > curl_authopt.h139 140 curl_form.h: $(HEADER)