[111294] users/devans/GNOME-3/stable/dports/gnome
devans at macports.org
devans at macports.org
Wed Sep 18 09:08:38 PDT 2013
Revision: 111294
https://trac.macports.org/changeset/111294
Author: devans at macports.org
Date: 2013-09-18 09:08:38 -0700 (Wed, 18 Sep 2013)
Log Message:
-----------
users/devans/GNOME-3/stable/dports: new port accountsservice, a D-Bus service for manipulating user account information.
Added Paths:
-----------
users/devans/GNOME-3/stable/dports/gnome/accountsservice/
users/devans/GNOME-3/stable/dports/gnome/accountsservice/Portfile
users/devans/GNOME-3/stable/dports/gnome/accountsservice/files/
users/devans/GNOME-3/stable/dports/gnome/accountsservice/files/patch-src-daemon.c.diff
users/devans/GNOME-3/stable/dports/gnome/accountsservice/files/patch-src-libaccountsservice-Makefile.in.diff
Added: users/devans/GNOME-3/stable/dports/gnome/accountsservice/Portfile
===================================================================
--- users/devans/GNOME-3/stable/dports/gnome/accountsservice/Portfile (rev 0)
+++ users/devans/GNOME-3/stable/dports/gnome/accountsservice/Portfile 2013-09-18 16:08:38 UTC (rev 111294)
@@ -0,0 +1,52 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name accountsservice
+version 0.6.34
+description AccountsService provides a set of D-Bus interfaces for querying \
+ and manipulating user account information.
+
+long_description \
+ ${description}
+maintainers devans openmaintainer
+categories gnome security
+platforms darwin
+license GPL-3+
+homepage http://www.freedesktop.org/wiki/Software/AccountsService
+master_sites http://www.freedesktop.org/software/accountsservice/
+
+use_xz yes
+
+checksums rmd160 473254f62e0177faa6f520a766de9c1fc3d05251 \
+ sha256 15672a6e87a218e2a2c09947e340cc6617cd5ccb201da6885c409c16362d6b14
+
+depends_build port:pkgconfig \
+ port:intltool \
+ port:xmlto \
+ port:libxslt
+
+depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \
+ port:policykit \
+ port:gobject-introspection \
+ port:vala
+
+patchfiles patch-src-daemon.c.diff \
+ patch-src-libaccountsservice-Makefile.in.diff
+
+post-patch {
+ reinplace "s|@@MP_PREFIX@@|${prefix}|" ${worksrcpath}/src/daemon.c
+}
+
+configure.args --enable-introspection=yes \
+ --enable-vala \
+ --disable-systemd \
+ --disable-silent-rules
+
+# gobject-introspection uses g-ir-scanner, which uses $CC from env
+build.args-append CC="${configure.cc} ${configure.cc_archflags}"
+
+livecheck.type regex
+livecheck.url ${master_sites}
+livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Property changes on: users/devans/GNOME-3/stable/dports/gnome/accountsservice/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/devans/GNOME-3/stable/dports/gnome/accountsservice/files/patch-src-daemon.c.diff
===================================================================
--- users/devans/GNOME-3/stable/dports/gnome/accountsservice/files/patch-src-daemon.c.diff (rev 0)
+++ users/devans/GNOME-3/stable/dports/gnome/accountsservice/files/patch-src-daemon.c.diff 2013-09-18 16:08:38 UTC (rev 111294)
@@ -0,0 +1,46 @@
+diff -ur src.orig/daemon.c src/daemon.c
+--- src.orig/daemon.c 2013-06-11 08:50:37.000000000 -0700
++++ src/daemon.c 2013-09-17 12:17:33.000000000 -0700
+@@ -49,9 +49,9 @@
+ #define PATH_SHADOW "/etc/shadow"
+ #define PATH_NOLOGIN "/sbin/nologin"
+ #define PATH_FALSE "/bin/false"
+-#define PATH_GDM_CUSTOM "/etc/gdm/custom.conf"
++#define PATH_GDM_CUSTOM "@@MP_PREFIX@@/etc/gdm/custom.conf"
+ #ifdef HAVE_UTMPX_H
+-#define PATH_WTMP _PATH_WTMPX
++#define PATH_WTMP _PATH_UTMPX
+ #endif
+
+ static const char *default_excludes[] = {
+@@ -406,6 +406,22 @@
+ gpointer *state)
+ {
+ struct passwd *pwent;
++#ifdef __APPLE__
++
++ /* First iteration */
++ if (*state == NULL) {
++ setpwent();
++ *state = 1;
++ }
++
++ /* Every iteration */
++ pwent = getpwent ();
++ if (pwent != NULL) {
++ return pwent;
++ }
++
++ /* Last iteration */
++#else
+ FILE *fp;
+
+ /* First iteration */
+@@ -426,6 +442,7 @@
+
+ /* Last iteration */
+ fclose (fp);
++#endif
+ *state = NULL;
+ return NULL;
+ }
Added: users/devans/GNOME-3/stable/dports/gnome/accountsservice/files/patch-src-libaccountsservice-Makefile.in.diff
===================================================================
--- users/devans/GNOME-3/stable/dports/gnome/accountsservice/files/patch-src-libaccountsservice-Makefile.in.diff (rev 0)
+++ users/devans/GNOME-3/stable/dports/gnome/accountsservice/files/patch-src-libaccountsservice-Makefile.in.diff 2013-09-18 16:08:38 UTC (rev 111294)
@@ -0,0 +1,10 @@
+--- src/libaccountsservice/Makefile.in.orig 2013-09-16 11:23:00.000000000 -0700
++++ src/libaccountsservice/Makefile.in 2013-09-16 11:23:21.000000000 -0700
+@@ -435,7 +435,6 @@
+ libaccountsservice_la_LIBADD = \
+ ../libaccounts-generated.la \
+ $(LIBACCOUNTSSERVICE_LIBS) \
+- -lcrypt \
+ $(END_OF_LIST)
+
+ libaccountsservice_la_sources = \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130918/baec293c/attachment-0001.html>
More information about the macports-changes
mailing list