mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
test: test debian packaging
This commit is contained in:
parent
db0e8b801d
commit
048aa4799f
7
debian/rules
vendored
7
debian/rules
vendored
@ -7,13 +7,12 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
|
||||
|
||||
export DEBIAN_PACKAGE=1
|
||||
|
||||
dbus_conf = /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
|
||||
|
||||
%:
|
||||
dh $@
|
||||
override_dh_installsystemd:
|
||||
# Update the the dbus user to logname
|
||||
dbus_conf="/usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf"
|
||||
if [ -f "${dbus_conf}" ]; then
|
||||
sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" "${dbus_conf}"
|
||||
fi
|
||||
if [ -f $(dbus_conf) ] ; then sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"`logname`\"/" $(dbus_conf) ; fi
|
||||
|
||||
dh_installsystemd gpservice.service
|
||||
|
Loading…
x
Reference in New Issue
Block a user