aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/accountsservice
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2014-11-19 19:49:04 +0800
committerkwm <kwm@FreeBSD.org>2014-11-19 19:49:04 +0800
commitbe884cd42990f2e755c2c06bc38c8042cb8b0325 (patch)
tree1ad98a4e8faecd0e2fa9ac2c18e65da4cf89c236 /sysutils/accountsservice
parent1c38992aaca771dc7aab7ae768e5753c6381ecd3 (diff)
downloadfreebsd-ports-gnome-be884cd42990f2e755c2c06bc38c8042cb8b0325.tar.gz
freebsd-ports-gnome-be884cd42990f2e755c2c06bc38c8042cb8b0325.tar.zst
freebsd-ports-gnome-be884cd42990f2e755c2c06bc38c8042cb8b0325.zip
The FreeBSD GNOME team proudly presents GNOME 3.14 and Cinnamon 2.2.
Gnome 3.14.1 and Cinnamon 2.2.16 are supported on FreeBSD 9.3-RELEASE and up. This commit removes the old GNOME 2 desktop, bindings and some ports that can't be compiled. A few ports where updated to more recent versions to allow them to compile with this update. Apart from updating ports to newer versions GDM is more integrated with gnome-shell now, and handles several things for the GNOME desktop such as screen locking. If you want to use GNOME 3 via startx, you will have to add your own lock screen/screensaver. For example xscreensaver can be used for sessions started without GDM. Shell Extensions can be installed via https://extensions.gnome.org/ , we have ported a few that can't be installed via this way. The old gnome-utils and gnome-games ports where split up into single ports and where converted to meta-ports. gnome-terminal requires a UTF-8 locale to run, gdm handles this already, but if you use startx you need to do this yourself. Upgrade instructions: Delete the old and conflicting packages: # pkg delete clutter gnome-utils gnome-panel gnome-keyring vala-vapigen \ guile gcalctool gnome-media libgnomekbd # pkg delete gnome-screensaver gnome-applets bug-buddy evolution-exchange \ evolution-webcal gnome-system-tools seahorse-plugins gnome-control-center For package users the following lines will be enough: # pkg upgrade # pkg install gnome3 For ports users should do the following: # portmaster -a # portmaster x11/gnome3 We are currently aware of two issues. The first issue is a bug in the file monitoring code in the glib20 port. This bug causes glib programs to crash when files in a monitored directory are added or removed. Upstream is aware of the problem, but since the problem is quite complex there is no solution yet. This problem isn't restricted to BSD. The second issue is that on certain video cards totem will display a purple/pink overlay on the video. It not clear yet where the issues comes from. Major thanks goes to Gustau Perez for being a driving force behind getting GNOME 3 up to speed again. Also thanks to Antoine Brodin for running the exp-runs. This update was also made possible by: Joe Maloney Kris Moore Beeblebrox Ryan Lortie Antoine Jacoutot and everyone I missed
Diffstat (limited to 'sysutils/accountsservice')
-rw-r--r--sysutils/accountsservice/Makefile33
-rw-r--r--sysutils/accountsservice/distinfo2
-rw-r--r--sysutils/accountsservice/files/patch-configure21
-rw-r--r--sysutils/accountsservice/files/patch-src_daemon.c40
-rw-r--r--sysutils/accountsservice/files/patch-src_user-classify.c18
-rw-r--r--sysutils/accountsservice/files/patch-src_user.c168
-rw-r--r--sysutils/accountsservice/pkg-descr9
-rw-r--r--sysutils/accountsservice/pkg-install9
-rw-r--r--sysutils/accountsservice/pkg-plist77
9 files changed, 377 insertions, 0 deletions
diff --git a/sysutils/accountsservice/Makefile b/sysutils/accountsservice/Makefile
new file mode 100644
index 000000000000..5db515992534
--- /dev/null
+++ b/sysutils/accountsservice/Makefile
@@ -0,0 +1,33 @@
+# Created by: Koop Mast <kwm@FreeBSD.org>
+# $FreeBSD$
+# $MCom: ports/trunk/sysutils/accountsservice/Makefile 20031 2014-11-02 21:47:55Z kwm $
+
+PORTNAME= accountsservice
+PORTVERSION= 0.6.37
+PORTREVISION= 1
+CATEGORIES= sysutils devel
+MASTER_SITES= http://www.freedesktop.org/software/${PORTNAME}/
+
+MAINTAINER= kwm@FreeBSD.org
+COMMENT= D-Bus interface for user account query and manipulation
+
+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= gettext gmake libtool pathfix pkgconfig tar:xz
+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>
+
diff --git a/sysutils/accountsservice/distinfo b/sysutils/accountsservice/distinfo
new file mode 100644
index 000000000000..fe4fdc7e829c
--- /dev/null
+++ b/sysutils/accountsservice/distinfo
@@ -0,0 +1,2 @@
+SHA256 (accountsservice-0.6.37.tar.xz) = b0b21136dc9d74a7135fd5ed7fa1a8069efb91bc6ecc1ef8911125433345a5c1
+SIZE (accountsservice-0.6.37.tar.xz) = 363244
diff --git a/sysutils/accountsservice/files/patch-configure b/sysutils/accountsservice/files/patch-configure
new file mode 100644
index 000000000000..cbf3790afc2b
--- /dev/null
+++ b/sysutils/accountsservice/files/patch-configure
@@ -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
++
++
+
+
+
diff --git a/sysutils/accountsservice/files/patch-src_daemon.c b/sysutils/accountsservice/files/patch-src_daemon.c
new file mode 100644
index 000000000000..29226ddd111f
--- /dev/null
+++ b/sysutils/accountsservice/files/patch-src_daemon.c
@@ -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 {
diff --git a/sysutils/accountsservice/files/patch-src_user-classify.c b/sysutils/accountsservice/files/patch-src_user-classify.c
new file mode 100644
index 000000000000..ae8aae3d3129
--- /dev/null
+++ b/sysutils/accountsservice/files/patch-src_user-classify.c
@@ -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"
+ };
diff --git a/sysutils/accountsservice/files/patch-src_user.c b/sysutils/accountsservice/files/patch-src_user.c
new file mode 100644
index 000000000000..9a5dd9a588af
--- /dev/null
+++ b/sysutils/accountsservice/files/patch-src_user.c
@@ -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)) {
diff --git a/sysutils/accountsservice/pkg-descr b/sysutils/accountsservice/pkg-descr
new file mode 100644
index 000000000000..6012fa533dec
--- /dev/null
+++ b/sysutils/accountsservice/pkg-descr
@@ -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/
diff --git a/sysutils/accountsservice/pkg-install b/sysutils/accountsservice/pkg-install
new file mode 100644
index 000000000000..65319d21350f
--- /dev/null
+++ b/sysutils/accountsservice/pkg-install
@@ -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
diff --git a/sysutils/accountsservice/pkg-plist b/sysutils/accountsservice/pkg-plist
new file mode 100644
index 000000000000..fbb49b9e38e9
--- /dev/null
+++ b/sysutils/accountsservice/pkg-plist
@@ -0,0 +1,77 @@
+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@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@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