[Midnightbsd-cvs] mports [19357] trunk/sysutils: add accountsservice port for gdm
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Jun 6 18:45:48 EDT 2015
Revision: 19357
http://svnweb.midnightbsd.org/mports/?rev=19357
Author: laffer1
Date: 2015-06-06 18:45:48 -0400 (Sat, 06 Jun 2015)
Log Message:
-----------
add accountsservice port for gdm
Modified Paths:
--------------
trunk/sysutils/Makefile
Added Paths:
-----------
trunk/sysutils/accountsservice/
trunk/sysutils/accountsservice/Makefile
trunk/sysutils/accountsservice/distinfo
trunk/sysutils/accountsservice/files/
trunk/sysutils/accountsservice/files/patch-configure
trunk/sysutils/accountsservice/files/patch-src_daemon.c
trunk/sysutils/accountsservice/files/patch-src_user-classify.c
trunk/sysutils/accountsservice/files/patch-src_user.c
trunk/sysutils/accountsservice/pkg-descr
trunk/sysutils/accountsservice/pkg-install
trunk/sysutils/accountsservice/pkg-plist
Modified: trunk/sysutils/Makefile
===================================================================
--- trunk/sysutils/Makefile 2015-06-06 22:44:11 UTC (rev 19356)
+++ trunk/sysutils/Makefile 2015-06-06 22:45:48 UTC (rev 19357)
@@ -4,6 +4,7 @@
SUBDIR += 915resolution
SUBDIR += LPRng
+SUBDIR += accountsservice
SUBDIR += apachetop
SUBDIR += bacula-client
SUBDIR += bacula-client-static
Added: trunk/sysutils/accountsservice/Makefile
===================================================================
--- trunk/sysutils/accountsservice/Makefile (rev 0)
+++ trunk/sysutils/accountsservice/Makefile 2015-06-06 22:45:48 UTC (rev 19357)
@@ -0,0 +1,34 @@
+# $MidnightBSD$
+
+PORTNAME= accountsservice
+PORTVERSION= 0.6.37
+CATEGORIES= sysutils devel
+MASTER_SITES= http://www.freedesktop.org/software/${PORTNAME}/
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= D-Bus interface for user account query and manipulation
+
+LICENSE= gpl3
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+LIB_DEPENDS= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
+ libpolkit-gobject-1.so:${PORTSDIR}/sysutils/polkit
+
+USE_GNOME= glib20 intlhack introspection:build libxslt
+USES= cpe gettext gmake libtool pathfix pkgconfig tar:xz
+CPE_VENDOR= ray_stode
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+CONFIGURE_ARGS= --disable-systemd --localstatedir=/var/
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+INSTALL_TARGET= install-strip
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/etc/gdm/custom.conf|${LOCALBASE}/etc/gdm/custom.conf|g' \
+ ${WRKSRC}/src/daemon.c
+ @${REINPLACE_CMD} -e 's|/lib/AccountsService|/db/AccountsService|g' \
+ ${WRKSRC}/src/user.c ${WRKSRC}/src/Makefile.in
+
+.include <bsd.port.mk>
+
Property changes on: trunk/sysutils/accountsservice/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/accountsservice/distinfo
===================================================================
--- trunk/sysutils/accountsservice/distinfo (rev 0)
+++ trunk/sysutils/accountsservice/distinfo 2015-06-06 22:45:48 UTC (rev 19357)
@@ -0,0 +1,2 @@
+SHA256 (accountsservice-0.6.37.tar.xz) = b0b21136dc9d74a7135fd5ed7fa1a8069efb91bc6ecc1ef8911125433345a5c1
+SIZE (accountsservice-0.6.37.tar.xz) = 363244
Property changes on: trunk/sysutils/accountsservice/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/accountsservice/files/patch-configure
===================================================================
--- trunk/sysutils/accountsservice/files/patch-configure (rev 0)
+++ trunk/sysutils/accountsservice/files/patch-configure 2015-06-06 22:45:48 UTC (rev 19357)
@@ -0,0 +1,21 @@
+--- configure.orig 2014-03-15 15:02:28.000000000 +0100
++++ configure 2014-03-15 15:03:01.000000000 +0100
+@@ -14527,6 +14527,18 @@
+ done
+
+
++for ac_func in fgetpwent
++do :
++ ac_fn_c_check_func "$LINENO" "fgetpwent" "ac_cv_func_fgetpwent"
++if test "x$ac_cv_func_fgetpwent" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_FGETPWENT 1
++_ACEOF
++
++fi
++done
++
++
+
+
+
Property changes on: trunk/sysutils/accountsservice/files/patch-configure
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/accountsservice/files/patch-src_daemon.c
===================================================================
--- trunk/sysutils/accountsservice/files/patch-src_daemon.c (rev 0)
+++ trunk/sysutils/accountsservice/files/patch-src_daemon.c 2015-06-06 22:45:48 UTC (rev 19357)
@@ -0,0 +1,40 @@
+--- src/daemon.c.orig 2014-03-23 09:36:37.194365289 +0000
++++ src/daemon.c 2014-03-23 09:36:39.836364714 +0000
+@@ -48,7 +48,7 @@
+ #define PATH_PASSWD "/etc/passwd"
+ #define PATH_SHADOW "/etc/shadow"
+ #define PATH_GROUP "/etc/group"
+-#define PATH_GDM_CUSTOM "/etc/gdm/custom.conf"
++#define PATH_GDM_CUSTOM "/usr/local/etc/gdm/custom.conf"
+
+ enum {
+ PROP_0,
+@@ -892,20 +892,18 @@
+
+ sys_log (context, "create user '%s'", cd->user_name);
+
+- argv[0] = "/usr/sbin/useradd";
+- argv[1] = "-m";
+- argv[2] = "-c";
+- argv[3] = cd->real_name;
++ argv[0] = "/usr/sbin/pw";
++ argv[1] = "useradd";
++ argv[2] = cd->user_name;
++ argv[3] = "-m";
++ argv[4] = "-c";
++ argv[5] = cd->real_name;
+ if (cd->account_type == ACCOUNT_TYPE_ADMINISTRATOR) {
+- argv[4] = "-G";
+- argv[5] = ADMIN_GROUP;
+- argv[6] = "--";
+- argv[7] = cd->user_name;
++ argv[6] = "-G";
++ argv[7] = ADMIN_GROUP;
+ argv[8] = NULL;
+ }
+ else if (cd->account_type == ACCOUNT_TYPE_STANDARD) {
+- argv[4] = "--";
+- argv[5] = cd->user_name;
+ argv[6] = NULL;
+ }
+ else {
Property changes on: trunk/sysutils/accountsservice/files/patch-src_daemon.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/accountsservice/files/patch-src_user-classify.c
===================================================================
--- trunk/sysutils/accountsservice/files/patch-src_user-classify.c (rev 0)
+++ trunk/sysutils/accountsservice/files/patch-src_user-classify.c 2015-06-06 22:45:48 UTC (rev 19357)
@@ -0,0 +1,18 @@
+--- src/user-classify.c.orig 2014-03-15 15:09:59.000000000 +0100
++++ src/user-classify.c 2014-03-15 15:11:06.000000000 +0100
+@@ -44,6 +44,7 @@
+ "nobody4",
+ "noaccess",
+ "postgres",
++ "pgsql",
+ "pvm",
+ "rpm",
+ "nfsnobody",
+@@ -53,6 +54,7 @@
+ "games",
+ "man",
+ "at",
++ "saned",
+ "gdm",
+ "gnome-initial-setup"
+ };
Property changes on: trunk/sysutils/accountsservice/files/patch-src_user-classify.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/accountsservice/files/patch-src_user.c
===================================================================
--- trunk/sysutils/accountsservice/files/patch-src_user.c (rev 0)
+++ trunk/sysutils/accountsservice/files/patch-src_user.c 2015-06-06 22:45:48 UTC (rev 19357)
@@ -0,0 +1,168 @@
+--- src/user.c.orig 2014-03-15 15:16:49.000000000 +0100
++++ src/user.c 2014-03-15 15:31:57.000000000 +0100
+@@ -873,11 +873,11 @@
+ "change real name of user '%s' (%d) to '%s'",
+ user->user_name, user->uid, name);
+
+- argv[0] = "/usr/sbin/usermod";
+- argv[1] = "-c";
+- argv[2] = name;
+- argv[3] = "--";
+- argv[4] = user->user_name;
++ argv[0] = "/usr/sbin/pw";
++ argv[1] = "usermod";
++ argv[2] = user->user_name;
++ argv[3] = "-c";
++ argv[4] = name;
+ argv[5] = NULL;
+
+ error = NULL;
+@@ -947,11 +947,11 @@
+ "change name of user '%s' (%d) to '%s'",
+ old_name, user->uid, name);
+
+- argv[0] = "/usr/sbin/usermod";
+- argv[1] = "-l";
+- argv[2] = name;
+- argv[3] = "--";
+- argv[4] = user->user_name;
++ argv[0] = "/usr/sbin/pw";
++ argv[1] = "usermod";
++ argv[2] = user->user_name;
++ argv[3] = "-n";
++ argv[4] = name;
+ argv[5] = NULL;
+
+ error = NULL;
+@@ -1229,13 +1229,12 @@
+ "change home directory of user '%s' (%d) to '%s'",
+ user->user_name, user->uid, home_dir);
+
+- argv[0] = "/usr/sbin/usermod";
+- argv[1] = "-m";
+- argv[2] = "-d";
+- argv[3] = home_dir;
+- argv[4] = "--";
+- argv[5] = user->user_name;
+- argv[6] = NULL;
++ argv[0] = "/usr/sbin/pw";
++ argv[1] = "-d";
++ argv[2] = home_dir;
++ argv[3] = "-n";
++ argv[4] = user->user_name;
++ argv[5] = NULL;
+
+ error = NULL;
+ if (!spawn_with_login_uid (context, argv, &error)) {
+@@ -1291,11 +1290,11 @@
+ "change shell of user '%s' (%d) to '%s'",
+ user->user_name, user->uid, shell);
+
+- argv[0] = "/usr/sbin/usermod";
+- argv[1] = "-s";
+- argv[2] = shell;
+- argv[3] = "--";
+- argv[4] = user->user_name;
++ argv[0] = "/usr/sbin/pw";
++ argv[1] = "usermod";
++ argv[2] = user->user_name;
++ argv[3] = "-s";
++ argv[4] = shell;
+ argv[5] = NULL;
+
+ error = NULL;
+@@ -1551,11 +1550,10 @@
+ sys_log (context,
+ "%s account of user '%s' (%d)",
+ locked ? "locking" : "unlocking", user->user_name, user->uid);
+- argv[0] = "/usr/sbin/usermod";
+- argv[1] = locked ? "-L" : "-U";
+- argv[2] = "--";
+- argv[3] = user->user_name;
+- argv[4] = NULL;
++ argv[0] = "/usr/sbin/pw";
++ argv[1] = locked ? "lock" : "unlock";
++ argv[2] = user->user_name;
++ argv[3] = NULL;
+
+ error = NULL;
+ if (!spawn_with_login_uid (context, argv, &error)) {
+@@ -1664,11 +1662,11 @@
+
+ g_free (groups);
+
+- argv[0] = "/usr/sbin/usermod";
+- argv[1] = "-G";
+- argv[2] = str->str;
+- argv[3] = "--";
+- argv[4] = user->user_name;
++ argv[0] = "/usr/sbin/pw";
++ argv[1] = "usermod";
++ argv[2] = user->user_name;
++ argv[3] = "-G";
++ argv[4] = str->str;
+ argv[5] = NULL;
+
+ g_string_free (str, FALSE);
+@@ -1735,10 +1733,8 @@
+ mode == PASSWORD_MODE_NONE) {
+
+ argv[0] = "/usr/bin/passwd";
+- argv[1] = "-d";
+- argv[2] = "--";
+- argv[3] = user->user_name;
+- argv[4] = NULL;
++ argv[1] = user->user_name;
++ argv[2] = NULL;
+
+ error = NULL;
+ if (!spawn_with_login_uid (context, argv, &error)) {
+@@ -1748,12 +1744,11 @@
+ }
+
+ if (mode == PASSWORD_MODE_SET_AT_LOGIN) {
+- argv[0] = "/usr/bin/chage";
+- argv[1] = "-d";
++ argv[0] = "/usr/bin/chpass";
++ argv[1] = "-e";
+ argv[2] = "0";
+- argv[3] = "--";
+- argv[4] = user->user_name;
+- argv[5] = NULL;
++ argv[3] = user->user_name;
++ argv[4] = NULL;
+
+ error = NULL;
+ if (!spawn_with_login_uid (context, argv, &error)) {
+@@ -1777,11 +1772,10 @@
+ }
+ }
+ else if (user->locked) {
+- argv[0] = "/usr/sbin/usermod";
+- argv[1] = "-U";
+- argv[2] = "--";
+- argv[3] = user->user_name;
+- argv[4] = NULL;
++ argv[0] = "/usr/sbin/pw";
++ argv[1] = "unlock";
++ argv[2] = user->user_name;
++ argv[3] = NULL;
+
+ error = NULL;
+ if (!spawn_with_login_uid (context, argv, &error)) {
+@@ -1852,12 +1846,11 @@
+
+ g_object_freeze_notify (G_OBJECT (user));
+
+- argv[0] = "/usr/sbin/usermod";
++ argv[0] = "/usr/bin/chpass";
+ argv[1] = "-p";
+ argv[2] = strings[0];
+- argv[3] = "--";
+- argv[4] = user->user_name;
+- argv[5] = NULL;
++ argv[3] = user->user_name;
++ argv[4] = NULL;
+
+ error = NULL;
+ if (!spawn_with_login_uid (context, argv, &error)) {
Property changes on: trunk/sysutils/accountsservice/files/patch-src_user.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/accountsservice/pkg-descr
===================================================================
--- trunk/sysutils/accountsservice/pkg-descr (rev 0)
+++ trunk/sysutils/accountsservice/pkg-descr 2015-06-06 22:45:48 UTC (rev 19357)
@@ -0,0 +1,9 @@
+The AccountsService project provides
+
+ o A set of D-Bus interfaces for querying and manipulating
+ user account information.
+
+ o An implementation of these interfaces based on the usermod(8),
+ useradd(8) and userdel(8) commands.
+
+WWW: http://cgit.freedesktop.org/accountsservice/
Property changes on: trunk/sysutils/accountsservice/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/accountsservice/pkg-install
===================================================================
--- trunk/sysutils/accountsservice/pkg-install (rev 0)
+++ trunk/sysutils/accountsservice/pkg-install 2015-06-06 22:45:48 UTC (rev 19357)
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+case $2 in
+POST-INSTALL)
+ /bin/mkdir -p /var/db/AccountsService/users/
+ /bin/mkdir -p /var/db/AccountsService/icons/
+ exit 0
+ ;;
+esac
Property changes on: trunk/sysutils/accountsservice/pkg-install
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/sysutils/accountsservice/pkg-plist
===================================================================
--- trunk/sysutils/accountsservice/pkg-plist (rev 0)
+++ trunk/sysutils/accountsservice/pkg-plist 2015-06-06 22:45:48 UTC (rev 19357)
@@ -0,0 +1,80 @@
+etc/dbus-1/system.d/org.freedesktop.Accounts.conf
+include/accountsservice-1.0/act/act-user-enum-types.h
+include/accountsservice-1.0/act/act-user-manager.h
+include/accountsservice-1.0/act/act-user.h
+include/accountsservice-1.0/act/act.h
+lib/girepository-1.0/AccountsService-1.0.typelib
+lib/libaccountsservice.a
+lib/libaccountsservice.so
+lib/libaccountsservice.so.0
+lib/libaccountsservice.so.0.0.0
+libdata/pkgconfig/accountsservice.pc
+libexec/accounts-daemon
+share/dbus-1/interfaces/org.freedesktop.Accounts.User.xml
+share/dbus-1/interfaces/org.freedesktop.Accounts.xml
+share/dbus-1/system-services/org.freedesktop.Accounts.service
+share/gir-1.0/AccountsService-1.0.gir
+share/gtk-doc/html/libaccountsservice/ActUser.html
+share/gtk-doc/html/libaccountsservice/ActUserManager.html
+share/gtk-doc/html/libaccountsservice/annotation-glossary.html
+share/gtk-doc/html/libaccountsservice/api-index-full.html
+share/gtk-doc/html/libaccountsservice/ch01.html
+share/gtk-doc/html/libaccountsservice/home.png
+share/gtk-doc/html/libaccountsservice/index.html
+share/gtk-doc/html/libaccountsservice/index.sgml
+share/gtk-doc/html/libaccountsservice/left.png
+share/gtk-doc/html/libaccountsservice/libaccountsservice.devhelp2
+share/gtk-doc/html/libaccountsservice/right.png
+share/gtk-doc/html/libaccountsservice/style.css
+share/gtk-doc/html/libaccountsservice/up.png
+share/locale/ar/LC_MESSAGES/accounts-service.mo
+share/locale/bg_BG/LC_MESSAGES/accounts-service.mo
+share/locale/bn_IN/LC_MESSAGES/accounts-service.mo
+share/locale/ca/LC_MESSAGES/accounts-service.mo
+share/locale/ca at valencia/LC_MESSAGES/accounts-service.mo
+share/locale/cs/LC_MESSAGES/accounts-service.mo
+share/locale/da/LC_MESSAGES/accounts-service.mo
+share/locale/de/LC_MESSAGES/accounts-service.mo
+share/locale/el/LC_MESSAGES/accounts-service.mo
+share/locale/en_GB/LC_MESSAGES/accounts-service.mo
+share/locale/eo/LC_MESSAGES/accounts-service.mo
+share/locale/es/LC_MESSAGES/accounts-service.mo
+share/locale/fa_IR/LC_MESSAGES/accounts-service.mo
+share/locale/fi/LC_MESSAGES/accounts-service.mo
+share/locale/fr/LC_MESSAGES/accounts-service.mo
+share/locale/ga/LC_MESSAGES/accounts-service.mo
+share/locale/gl/LC_MESSAGES/accounts-service.mo
+share/locale/he/LC_MESSAGES/accounts-service.mo
+share/locale/hi/LC_MESSAGES/accounts-service.mo
+share/locale/hu/LC_MESSAGES/accounts-service.mo
+share/locale/ia/LC_MESSAGES/accounts-service.mo
+share/locale/id/LC_MESSAGES/accounts-service.mo
+share/locale/it/LC_MESSAGES/accounts-service.mo
+share/locale/ja/LC_MESSAGES/accounts-service.mo
+share/locale/ka/LC_MESSAGES/accounts-service.mo
+share/locale/kk/LC_MESSAGES/accounts-service.mo
+share/locale/ko/LC_MESSAGES/accounts-service.mo
+share/locale/lt/LC_MESSAGES/accounts-service.mo
+share/locale/lv/LC_MESSAGES/accounts-service.mo
+share/locale/nl/LC_MESSAGES/accounts-service.mo
+share/locale/pa/LC_MESSAGES/accounts-service.mo
+share/locale/pl/LC_MESSAGES/accounts-service.mo
+share/locale/pt_BR/LC_MESSAGES/accounts-service.mo
+share/locale/ro/LC_MESSAGES/accounts-service.mo
+share/locale/ru/LC_MESSAGES/accounts-service.mo
+share/locale/sk/LC_MESSAGES/accounts-service.mo
+share/locale/sl/LC_MESSAGES/accounts-service.mo
+share/locale/sr/LC_MESSAGES/accounts-service.mo
+share/locale/sr at latin/LC_MESSAGES/accounts-service.mo
+share/locale/sv/LC_MESSAGES/accounts-service.mo
+share/locale/te/LC_MESSAGES/accounts-service.mo
+share/locale/tr/LC_MESSAGES/accounts-service.mo
+share/locale/uk/LC_MESSAGES/accounts-service.mo
+share/locale/vi/LC_MESSAGES/accounts-service.mo
+share/locale/wa/LC_MESSAGES/accounts-service.mo
+share/locale/zh_CN/LC_MESSAGES/accounts-service.mo
+share/locale/zh_TW/LC_MESSAGES/accounts-service.mo
+share/polkit-1/actions/org.freedesktop.accounts.policy
+ at dir /var/db/AccountsService/icons
+ at dir /var/db/AccountsService/users
+ at dir /var/db/AccountsService
Property changes on: trunk/sysutils/accountsservice/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list