New: xfce4-bglist-editor
L.s. I have created an OpenBSD port for Xfce4-bglist-editor (an Xfce-goodie: http://xfce-goodies.berlios.de/). If you want to test it, please do it, I have tested it on OpenBSD/i386 and it works fine. If you have comments or questions, please be kind to me, since it's my first port ;-) ,but I'm eager to learn. Cheers, Jasper. -- "Security is decided by quality" -- Theo de Raadt xfce4-bglist-editor.tar.gz Description: Binary data
dspam update to 3.4.9
Hello, The mail/dspam port is getting old and the 3.2.x branch is not maintained any more. So here is an update to the latest release of the stable and maintained branch, 3.4.9. Additionnal changes over the previous port: - New flavor: sqlite3 to link against databases/sqlite3. It is way faster than sqlite v2 especially when the dictionnary is getting large. It also avoid deadlocks that often happen with v2 when feeding a corpus. This is why sqlite3 becomes the default in that port. - New flavor : daemon. - strcpy()/strcat()/sprintf() removal. - documentation update. Tested on i386 and amd64 with sqlite, sqlite3, pgsql and mysql. tarball here: ftp://ftp.00f.net/misc/port-dspam-3.4.9.tar.gz Best regards, -Frank. diff -urN mail/dspam.orig/Makefile mail/dspam/Makefile --- mail/dspam.orig/MakefileSun Feb 13 18:55:26 2005 +++ mail/dspam/Makefile Sat Aug 20 22:48:39 2005 @@ -2,7 +2,7 @@ COMMENT= "anti-spam filter" -VERSION= 3.2.6 +VERSION= 3.4.9 DISTNAME= dspam-${VERSION} CATEGORIES=mail @@ -31,17 +31,43 @@ --with-dspam-mode=0555 \ --enable-long-usernames -DOCS= ${WRKSRC}/README ${WRKSRC}/README.* +DOCS= ${WRKSRC}/README ${WRKSRC}/UPGRADING ${WRKSRC}/RELEASE.NOTES \ + ${WRKSRC}/doc/appliance.txt ${WRKSRC}/doc/courier.txt \ + ${WRKSRC}/doc/exim.txt ${WRKSRC}/doc/pop3filter.txt \ + ${WRKSRC}/doc/postfix.txt ${WRKSRC}/doc/qmail.txt \ + ${WRKSRC}/doc/sendmail.txt + EXAMPLESDIR= ${PREFIX}/share/examples/dspam DRIVER= -FLAVORS= sqlite mysql pgsql -FLAVOR?= sqlite +FLAVORS= sqlite3 sqlite mysql pgsql daemon +FLAVOR?= sqlite3 +.if ${FLAVOR:L:Mdaemon} +.if ${FLAVOR:L:Msqlite3} +BROKEN=daemon mode is currently incompatible with sqlite3 +.endif .if ${FLAVOR:L:Msqlite} +BROKEN=daemon mode is currently incompatible with sqlite +.endif +CONFIGURE_ARGS+= --enable-daemon +.endif + +.if ${FLAVOR:L:Msqlite3} .if !empty(DRIVER) -BROKEN=choose either mysql or pgsql or sqlite +BROKEN=choose either mysql or pgsql or sqlite or sqlite3 .endif +CONFIGURE_ARGS+= --with-storage-driver=sqlite3_drv \ + --with-sqlite-includes=${LOCALBASE}/include \ + --with-sqlite-libraries=${LOCALBASE}/lib +LIB_DEPENDS= sqlite3.8.6::databases/sqlite3 +DRIVER=sqlite +.endif + +.if ${FLAVOR:L:Msqlite} +.if !empty(DRIVER) +BROKEN=choose either mysql or pgsql or sqlite or sqlite3 +.endif CONFIGURE_ARGS+= --with-storage-driver=sqlite_drv \ --with-sqlite-includes=${LOCALBASE}/include \ --with-sqlite-libraries=${LOCALBASE}/lib @@ -51,7 +77,7 @@ .if ${FLAVOR:L:Mmysql} .if !empty(DRIVER) -BROKEN=choose either mysql or pgsql or sqlite +BROKEN=choose either mysql or pgsql or sqlite or sqlite3 .endif CONFIGURE_ARGS+= --with-storage-driver=mysql_drv \ --with-mysql-includes=${LOCALBASE}/include/mysql \ @@ -64,7 +90,7 @@ .if ${FLAVOR:L:Mpgsql} .if !empty(DRIVER) -BROKEN=choose either mysql or pgsql or sqlite +BROKEN=choose either mysql or pgsql or sqlite or sqlite3 .endif CONFIGURE_ARGS+= --with-storage-driver=pgsql_drv \ --with-pgsql-includes=${LOCALBASE}/include/postgresql \ @@ -76,10 +102,14 @@ post-install: ${INSTALL_DATA_DIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKBUILD}/dspam.conf ${PREFIX}/share/examples/dspam/dspam.conf - ${INSTALL_DATA} ${WRKSRC}/tools.${DRIVER}_drv/README ${EXAMPLESDIR}/README.${DRIVER} - ${INSTALL_DATA} ${WRKSRC}/tools.${DRIVER}_drv/*.sql ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKBUILD}/src/dspam.conf \ + ${PREFIX}/share/examples/dspam/dspam.conf + ${INSTALL_DATA_DIR} ${EXAMPLESDIR}/${DRIVER} + ${INSTALL_DATA} ${WRKSRC}/src/tools.${DRIVER}_drv/*.sql \ + ${EXAMPLESDIR}/${DRIVER} ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dspam ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/dspam + ${INSTALL_DATA} ${WRKSRC}/doc/${DRIVER}_drv.txt \ + ${PREFIX}/share/doc/dspam .include diff -urN mail/dspam.orig/distinfo mail/dspam/distinfo --- mail/dspam.orig/distinfoWed Feb 2 20:21:30 2005 +++ mail/dspam/distinfo Sat Aug 20 22:48:39 2005 @@ -1,4 +1,3 @@ -MD5 (dspam-3.2.6.tar.gz) = aad53b4542076840e2a0e1fd43e48ebb -RMD160 (dspam-3.2.6.tar.gz) = 1508dce53979dc10649a644b5153f0ed2ebb80fa -SHA1 (dspam-3.2.6.tar.gz) = 38bce0bb771a9cbdb8df7442071d492794cf1ce3 -SIZE (dspam-3.2.6.tar.gz) = 621074 +MD5 (dspam-3.4.9.tar.gz) = ef7ceba47e63edb02a59be3c36cf0f6f +SHA1 (dspam-3.4.9.tar.gz) = e697774e0f2eb4a9a363cf80
Re: dspam update to 3.4.9
On Sat, Aug 20, 2005 at 10:21:44PM +0159, Frank Denis (Jedi/Sector One) wrote: +++ mail/dspam/pkg/PLISTSat Aug 20 23:00:19 2005 @@ -1,6 +1,4 @@ [EMAIL PROTECTED] _dspam:540 [EMAIL PROTECTED] _dspam:540:540:daemon:DSPAM Account:/var/dspam:/sbin/nologin ... -%%sqlite%% -%%mysql%% -%%pgsql%% [EMAIL PROTECTED] rm -rf /var/dspam [EMAIL PROTECTED] /etc/dspam.conf [EMAIL PROTECTED] install -o _dspam -g _dspam -m 755 -d /var/dspam Oops, this should not be removed. ftp://ftp.00f.net/misc/port-dspam-3.4.9.tar.gz has the good PLIST.
SECURITY: textproc/gpdf
gpdf 2.8.1 is based on xpdf 3.00pl1. I've added the pl2 and pl3 security patches, as well as a fix for the CAN-2005-2097 DoS issue I pulled out of the Mandrake SRPM. It is important to realize that the xpdf code base is duplicated several times in the tree: xpdf itself, gpdf, kpdf, and cups. Any security issue affecting xpdf is likely to also affect its derivatives. Index: Makefile === RCS file: /cvs/ports/textproc/gpdf/Makefile,v retrieving revision 1.9 diff -u -r1.9 Makefile --- Makefile21 Feb 2005 16:54:19 - 1.9 +++ Makefile20 Aug 2005 20:49:17 - @@ -3,6 +3,7 @@ COMMENT= "PDF viewer for GNOME" DISTNAME= gpdf-2.8.1 +PKGNAME= ${DISTNAME}p0 CATEGORIES=textproc x11/gnome HOMEPAGE= http://www.inf.tu-dresden.de/~mk793652/gpdf/ Index: patches/patch-xpdf_GPOutputDev_cc === RCS file: patches/patch-xpdf_GPOutputDev_cc diff -N patches/patch-xpdf_GPOutputDev_cc --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-xpdf_GPOutputDev_cc 20 Aug 2005 20:49:17 - @@ -0,0 +1,56 @@ +$OpenBSD$ +--- xpdf/GPOutputDev.cc.orig Sat Aug 20 22:36:27 2005 xpdf/GPOutputDev.ccSat Aug 20 22:38:32 2005 +@@ -257,26 +257,14 @@ GnomeFontFace *GPOFontMap::getFontFaceEm + } + case fontTrueType: { + FoFiTrueType *ff; +-gint fd; +-gchar *temp_name; +-FILE *f; + gushort *code_to_gid; + + ff = FoFiTrueType::make((char *)contents, length); // FIXME error handling + + code_to_gid = ((Gfx8BitFont *)font)->getCodeToGIDMap(ff); // this is g(oo)malloc'd + +-fd = g_file_open_tmp("gpdf-ttf-XX", &temp_name, NULL); +-f = fdopen(fd, "wb"); +-ff->writeTTF(&fileWrite, f); + delete ff; +-g_free(contents); +-fclose(f); + +-g_file_get_contents(temp_name, (gchar **)&contents, &length, NULL); +-unlink(temp_name); +-g_free(temp_name); +- + gff = gpdf_font_face_download((const guchar *)font_name, + (const guchar *)"", + GNOME_FONT_REGULAR, FALSE, +@@ -318,25 +306,8 @@ GnomeFontFace *GPOFontMap::getFontFaceEm + break; + } + case fontCIDType2: { +-FoFiTrueType *ff; +-gint fd; +-gchar *temp_name; +-FILE *f; + gint n_cids; + gushort *code_to_gid; +- +-ff = FoFiTrueType::make((char *)contents, length); // FIXME error handling +- +-fd = g_file_open_tmp("gpdf-ttf-XX", &temp_name, NULL); +-f = fdopen(fd, "wb"); +-ff->writeTTF(&fileWrite, f); +-delete ff; +-g_free(contents); +-fclose(f); +- +-g_file_get_contents(temp_name, (gchar **)&contents, &length, NULL); +-unlink(temp_name); +-g_free(temp_name); + + gff = gpdf_font_face_download((const guchar *)font_name, + (const guchar *)"", Index: patches/patch-xpdf_GfxState_cc === RCS file: patches/patch-xpdf_GfxState_cc diff -N patches/patch-xpdf_GfxState_cc --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-xpdf_GfxState_cc 20 Aug 2005 20:49:17 - @@ -0,0 +1,24 @@ +$OpenBSD$ +--- xpdf/GfxState.cc.orig Sat Aug 20 22:10:30 2005 xpdf/GfxState.cc Sat Aug 20 22:12:38 2005 +@@ -714,6 +714,11 @@ GfxColorSpace *GfxICCBasedColorSpace::pa + } + nCompsA = obj2.getInt(); + obj2.free(); ++ if (nCompsA > gfxColorMaxComps) { ++error(-1, "ICCBased color space with too many (%d > %d) components", ++nCompsA, gfxColorMaxComps); ++nCompsA = gfxColorMaxComps; ++ } + if (dict->lookup("Alternate", &obj2)->isNull() || + !(altA = GfxColorSpace::parse(&obj2))) { + switch (nCompsA) { +@@ -1060,7 +1065,7 @@ GfxColorSpace *GfxDeviceNColorSpace::par + } + nCompsA = obj1.arrayGetLength(); + if (nCompsA > gfxColorMaxComps) { +-error(-1, "DeviceN color space with more than %d > %d components", ++error(-1, "DeviceN color space with too many (%d > %d) components", + nCompsA, gfxColorMaxComps); + nCompsA = gfxColorMaxComps; + } Index: patches/patch-xpdf_Gfx_cc === RCS file: patches/patch-xpdf_Gfx_cc diff -N patches/patch-xpdf_Gfx_cc --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-xpdf_Gfx_cc 20 Aug 2005 20:49:17 - @@ -0,0 +1,14 @@ +$OpenBSD$ +--- xpdf/Gfx.cc.orig Sat Aug 20 22:09:21 2005 xpdf/Gfx.ccSat Aug 20 22:10:22 2005 +@@ -2654,7 +2654,9 @@ void Gfx::doImage(Object *ref, Stream *s + haveMask = gFalse; + dict->lookup("Mask", &maskObj); + if (maskObj.isArray()) { +- for (i = 0; i < maskObj.arrayGetLength(); ++i) { ++ for (i = 0; ++i < maskObj.arrayGetLength() && i < 2*gfxColorMaxComps; ++++i) { + maskObj.arrayGet(i, &obj1); + maskColors[i] = obj1.getInt();
twiki on 3.7 anyone?
I have been trying to get twiki from ports running on 3.7-release but to no avail. I'm guessing error code 15 is to blame (problem seems to be situated 15 inches from the monitor =). So if anyone would like to share some notes on how to setup twiki I would be very happy. I have googled myself silly to find a howto so let's make one? Here's the output from my black-box for this flight: 1) pkg_add TWiki-20030201.tgz # is there a better way live with chroot and perl then this? 2) ldd /usr/bin/perl to list dependencies 3) create directories listed in apache chroot, like /var/www/usr/bin 4) copy perl and libraries into created dirs 5) append the following at the end of /var/www/conf/httpd.conf ScriptAlias /twiki/bin/ "/htdocs/twiki/bin/" Alias /twiki/ "/htdocs/twiki/" Options +ExecCGI -Indexes SetHandler cgi-script AllowOverride All Allow from all Options FollowSymLinks +Includes AllowOverride None Allow from all deny from all deny from all Now I am guessing I am a few steps short, but I'm not sure where to start digging. //Johan