Index: head/sysutils/policykit/Makefile =================================================================== --- head/sysutils/policykit/Makefile (revision 217420) +++ head/sysutils/policykit/Makefile (revision 217421) @@ -1,55 +1,56 @@ # New ports collection makefile for: PolicyKit # Date Created: 01 May 2006 # Whom: Joe Marcus Clarke # # $FreeBSD$ # $MCom: ports/sysutils/policykit/Makefile,v 1.19 2008/01/20 04:41:31 marcus Exp $ # PORTNAME= policykit PORTVERSION= 0.9 +PORTREVISION= 1 CATEGORIES= sysutils gnome MASTER_SITES= http://hal.freedesktop.org/releases/ DISTNAME= PolicyKit-${PORTVERSION} MAINTAINER= gnome@FreeBSD.org COMMENT= Framework for controlling access to system-wide components BUILD_DEPENDS= ${LOCALBASE}/share/sgml/docbook/4.1/catalog:${PORTSDIR}/textproc/docbook-410 \ xsltproc:${PORTSDIR}/textproc/libxslt \ ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl LIB_DEPENDS= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \ expat.6:${PORTSDIR}/textproc/expat2 USE_GNOME= gnomehack gnometarget glib20 intlhack USE_GMAKE= yes GNU_CONFIGURE= yes USE_LDCONFIG= yes CONFIGURE_ARGS= --disable-gtk-doc \ --with-pam-include=system \ --with-os-type=freebsd \ --localstatedir=/var \ --with-polkit-user=polkit \ --with-polkit-group=polkit CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" \ GTKDOC="false" MAN1= polkit-action.1 polkit-auth.1 polkit-config-file-validate.1 \ polkit-policy-file-validate.1 MAN5= PolicyKit.conf.5 MAN8= PolicyKit.8 post-install: ${MKDIR} ${PREFIX}/etc/PolicyKit if [ ! -f ${PREFIX}/etc/PolicyKit/PolicyKit.conf ]; then \ ${INSTALL_DATA} ${WRKSRC}/data/PolicyKit.conf \ ${PREFIX}/etc/PolicyKit/PolicyKit.conf ; \ fi ${INSTALL_DATA} ${WRKSRC}/data/PolicyKit.conf \ ${PREFIX}/etc/PolicyKit/PolicyKit.conf.dist .if !defined(PACKAGE_BUILDING) @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif .include Property changes on: head/sysutils/policykit/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.14 \ No newline at end of property +1.15 \ No newline at end of property Index: head/sysutils/policykit/files/patch-src_kit_kit-string.c =================================================================== --- head/sysutils/policykit/files/patch-src_kit_kit-string.c (nonexistent) +++ head/sysutils/policykit/files/patch-src_kit_kit-string.c (revision 217421) @@ -0,0 +1,27 @@ +--- src/kit/kit-string.c.orig 2008-05-30 17:24:44.000000000 -0400 ++++ src/kit/kit-string.c 2008-07-24 01:21:34.000000000 -0400 +@@ -123,13 +123,18 @@ static char + if ( !s ) + return NULL; + +- if ( strlen(s) > n ) +- nAvail = n + 1; +- else +- nAvail = strlen(s) + 1; +- p = malloc ( nAvail ); ++ if (memchr(s, '\0', n) != NULL) { ++ nAvail = strlen(s); ++ if ( nAvail > n ) ++ nAvail = n; ++ } else { ++ nAvail = n; ++ } ++ p = malloc ( nAvail + 1 ); ++ if (p == NULL) ++ return NULL; + memcpy ( p, s, nAvail ); +- p[nAvail - 1] = '\0'; ++ p[nAvail] = '\0'; + + return p; + } Property changes on: head/sysutils/policykit/files/patch-src_kit_kit-string.c ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.5 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property