aboutsummaryrefslogtreecommitdiff
path: root/x11/lightdm-gtk-greeter-settings
diff options
context:
space:
mode:
authorBen Woods <woodsb02@FreeBSD.org>2020-03-08 03:11:46 +0000
committerBen Woods <woodsb02@FreeBSD.org>2020-03-08 03:11:46 +0000
commit4deb13ef23a3a3a31b00cac566c7254bb43e6152 (patch)
tree0212c4a54a8f8117028c62af1f4d112a7b497ab8 /x11/lightdm-gtk-greeter-settings
parentb2970d13c2173bc15efc2e336244a4a727e49e01 (diff)
downloadports-4deb13ef23a3a3a31b00cac566c7254bb43e6152.tar.gz
ports-4deb13ef23a3a3a31b00cac566c7254bb43e6152.zip
Notes
Diffstat (limited to 'x11/lightdm-gtk-greeter-settings')
-rw-r--r--x11/lightdm-gtk-greeter-settings/Makefile40
-rw-r--r--x11/lightdm-gtk-greeter-settings/distinfo3
-rw-r--r--x11/lightdm-gtk-greeter-settings/files/patch-bin_lightdm-gtk-greeter-settings-pkexec18
-rw-r--r--x11/lightdm-gtk-greeter-settings/files/patch-lightdm__gtk__greeter__settings_helpers.py13
-rw-r--r--x11/lightdm-gtk-greeter-settings/files/patch-setup.py11
-rw-r--r--x11/lightdm-gtk-greeter-settings/pkg-descr4
6 files changed, 89 insertions, 0 deletions
diff --git a/x11/lightdm-gtk-greeter-settings/Makefile b/x11/lightdm-gtk-greeter-settings/Makefile
new file mode 100644
index 000000000000..977af05141b0
--- /dev/null
+++ b/x11/lightdm-gtk-greeter-settings/Makefile
@@ -0,0 +1,40 @@
+# Created by: Ben Woods <woodsb02@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= lightdm-gtk-greeter-settings
+PORTVERSION= 1.2.2
+CATEGORIES= x11
+MASTER_SITES= https://launchpad.net/${PORTNAME}/${PORTVERSION:R}/${PORTVERSION}/+download/
+
+MAINTAINER= woodsb02@FreeBSD.org
+COMMENT= Settings editor for LightDM GTK+ Greeter
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= lightdm-gtk-greeter:x11/lightdm-gtk-greeter \
+ ${PYTHON_PKGNAMEPREFIX}python-distutils-extra>=2.38:devel/py-python-distutils-extra@${PY_FLAVOR}
+LIB_DEPENDS= liblightdm-gobject-1.so:x11/lightdm
+
+USES= gettext-tools gnome python
+USE_GNOME= intltool pygobject3
+USE_PYTHON= autoplist distutils noflavors
+
+NO_ARCH= yes
+PLIST_FILES= ${PYTHON_SITELIBDIR}/lightdm_gtk_greeter_settings/installation_config.py
+PYDISTUTILS_INSTALLARGS+= --xfce-integration
+
+post-patch:
+ @${RM} ${WRKSRC}/bin/lightdm-gtk-greeter-settings-pkexec.orig
+ @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" \
+ -e "s,%%LOCALBASE%%,${LOCALBASE},g" \
+ ${WRKSRC}/bin/lightdm-gtk-greeter-settings-pkexec \
+ ${WRKSRC}/lightdm_gtk_greeter_settings/helpers.py \
+ ${WRKSRC}/setup.py
+
+.include <bsd.port.pre.mk>
+
+# PYDISTUTILS_INSTALLNOSINGLE is deprecated so...
+PYDISTUTILS_INSTALLARGS:= ${PYDISTUTILS_INSTALLARGS:N--single-version-externally-managed}
+
+.include <bsd.port.post.mk>
diff --git a/x11/lightdm-gtk-greeter-settings/distinfo b/x11/lightdm-gtk-greeter-settings/distinfo
new file mode 100644
index 000000000000..76914865e4a2
--- /dev/null
+++ b/x11/lightdm-gtk-greeter-settings/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1583629250
+SHA256 (lightdm-gtk-greeter-settings-1.2.2.tar.gz) = 4364d8b25b23d2ef4856d19724fd6c67de9a2d3c1b3833f7a5441145fd39dcb7
+SIZE (lightdm-gtk-greeter-settings-1.2.2.tar.gz) = 127123
diff --git a/x11/lightdm-gtk-greeter-settings/files/patch-bin_lightdm-gtk-greeter-settings-pkexec b/x11/lightdm-gtk-greeter-settings/files/patch-bin_lightdm-gtk-greeter-settings-pkexec
new file mode 100644
index 000000000000..efc754183a81
--- /dev/null
+++ b/x11/lightdm-gtk-greeter-settings/files/patch-bin_lightdm-gtk-greeter-settings-pkexec
@@ -0,0 +1,18 @@
+--- bin/lightdm-gtk-greeter-settings-pkexec.orig 2017-09-19 09:52:09 UTC
++++ bin/lightdm-gtk-greeter-settings-pkexec
+@@ -1,13 +1,5 @@
+-#!/bin/bash
++#!/bin/sh
+
+-APP_PATH="/usr/bin/lightdm-gtk-greeter-settings"
+-
+-# Check for "socket" argument
+-for i in "$@"; do
+- if [[ "$i" == "-s="* ]] || [[ "$i" == "--socket-id="* ]]; then
+- pkexec "${APP_PATH}" "$@" || "${APP_PATH}" "$@"
+- exit $?
+- fi
+-done
++APP_PATH="%%PREFIX%%/bin/lightdm-gtk-greeter-settings"
+
+ pkexec "${APP_PATH}" "$@"
diff --git a/x11/lightdm-gtk-greeter-settings/files/patch-lightdm__gtk__greeter__settings_helpers.py b/x11/lightdm-gtk-greeter-settings/files/patch-lightdm__gtk__greeter__settings_helpers.py
new file mode 100644
index 000000000000..1cacddbfb103
--- /dev/null
+++ b/x11/lightdm-gtk-greeter-settings/files/patch-lightdm__gtk__greeter__settings_helpers.py
@@ -0,0 +1,13 @@
+--- lightdm_gtk_greeter_settings/helpers.py.orig 2020-03-08 02:41:40 UTC
++++ lightdm_gtk_greeter_settings/helpers.py
+@@ -184,8 +184,8 @@ def check_path_accessibility(path, file=True, executab
+ try:
+ uid, gids = check_path_accessibility.id_cached_data
+ except AttributeError:
+- files = glob.glob('/etc/lightdm/lightdm.d/*.conf')
+- files += ['/etc/lightdm/lightdm.conf']
++ files = glob.glob('%%LOCALBASE%%/etc/lightdm/lightdm.d/*.conf')
++ files += ['%%LOCALBASE%%/etc/lightdm/lightdm.conf']
+ config = configparser.RawConfigParser(strict=False)
+ config.read(files)
+ username = config.get('LightDM', 'greeter-user', fallback='lightdm')
diff --git a/x11/lightdm-gtk-greeter-settings/files/patch-setup.py b/x11/lightdm-gtk-greeter-settings/files/patch-setup.py
new file mode 100644
index 000000000000..04e9cc5747c2
--- /dev/null
+++ b/x11/lightdm-gtk-greeter-settings/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2020-03-08 02:41:05 UTC
++++ setup.py
+@@ -63,7 +63,7 @@ class InstallAndUpdateDataDirectory(DistUtilsExtra.aut
+
+ values = {'__data_directory__': "'%s'" % (target_pkgdata),
+ '__version__': "'%s'" % self.distribution.get_version(),
+- '__config_path__': '"/etc/lightdm/lightdm-gtk-greeter.conf"'}
++ '__config_path__': '"%%LOCALBASE%%/etc/lightdm/lightdm-gtk-greeter.conf"'}
+ write_config(self.install_lib, values)
+
+ desktop_file_path = os.path.join(self.install_data, 'share', 'applications',
diff --git a/x11/lightdm-gtk-greeter-settings/pkg-descr b/x11/lightdm-gtk-greeter-settings/pkg-descr
new file mode 100644
index 000000000000..d01730f81b07
--- /dev/null
+++ b/x11/lightdm-gtk-greeter-settings/pkg-descr
@@ -0,0 +1,4 @@
+Just a small dialog to make it easier for users to modify the settings of
+lightdm-gtk-greeter.
+
+WWW: https://launchpad.net/lightdm-gtk-greeter-settings