diff options
-rw-r--r-- | abs/extra/tigervnc/PKGBUILD | 27 | ||||
-rw-r--r-- | abs/extra/tigervnc/tiger.install | 2 | ||||
-rw-r--r-- | abs/extra/tigervnc/vncsvc.rules | 4 |
3 files changed, 25 insertions, 8 deletions
diff --git a/abs/extra/tigervnc/PKGBUILD b/abs/extra/tigervnc/PKGBUILD index 061a7f7..21d3013 100644 --- a/abs/extra/tigervnc/PKGBUILD +++ b/abs/extra/tigervnc/PKGBUILD @@ -26,14 +26,7 @@ source=(http://downloads.sourceforge.net/tigervnc/${pkgname}-${pkgver}.tar.gz xorg112.patch gnutls.patch gethomedir.patch - cmakelists.patch) -md5sums=('3a5755b4ed600a81c3a17976c6f8420d' - '65a53b11bc01dcc97ee9b201dc620c32' - 'b680b55f7f9f569cd26ac0b330012a8b' - 'f73e055153889ae7b5aac8e697f7a841' - '1a5fe8867ab3e49e20aafc70c415494f' - 'fa059baabe72308bf82622bca73cb3e0' - '6ef923c71cc0e79c4b37eb3b124eea75') + cmakelists.patch vncsvc.rules) build() { cd ${srcdir}/${pkgname}-${pkgver} @@ -67,4 +60,22 @@ package() { cd unix/xserver/hw/vnc make DESTDIR=${pkgdir} install sed -i 's/iconic/nowin/' ${pkgdir}/usr/bin/vncserver + + cd ${srcdir} + #sudo rules + mkdir -p $startdir/pkg/etc/sudoers.d/ + chmod 750 $startdir/pkg/etc/sudoers.d/ + chown -R root:root $startdir/pkg/etc/sudoers.d + install -o root -g root -m 0750 vncsvc.rules $startdir/pkg/etc/sudoers.d/vncsvc-tigervnc + + + } +md5sums=('3a5755b4ed600a81c3a17976c6f8420d' + '65a53b11bc01dcc97ee9b201dc620c32' + 'b680b55f7f9f569cd26ac0b330012a8b' + 'f73e055153889ae7b5aac8e697f7a841' + '1a5fe8867ab3e49e20aafc70c415494f' + 'fa059baabe72308bf82622bca73cb3e0' + '6ef923c71cc0e79c4b37eb3b124eea75' + '6f4a594581e63bfb29cd1b7b37d66d10') diff --git a/abs/extra/tigervnc/tiger.install b/abs/extra/tigervnc/tiger.install index 5aa9395..87e7b5e 100644 --- a/abs/extra/tigervnc/tiger.install +++ b/abs/extra/tigervnc/tiger.install @@ -1,12 +1,14 @@ post_install(){ groupadd -g 78 vncsvc &>/dev/null useradd -u 78 -m -g vncsvc -d /home/vncsvc -s /bin/bash vncsvc &>/dev/null + usermod -a -G mythtv vncsvc chown -R vncsvc:vncsvc /home/vncsvc &>/dev/null } post_upgrade(){ getent group vncsvc >/dev/null 2>&1 || groupadd -g 78 vncsvc &>/dev/null getent passwd vncsvc >/dev/null 2>&1 || useradd -u 78 -g vncsvc -m -d /home/vncsvc -s /bin/bash vncsvc &>/dev/null + usermod -a -G mythtv vncsvc } post_remove(){ diff --git a/abs/extra/tigervnc/vncsvc.rules b/abs/extra/tigervnc/vncsvc.rules new file mode 100644 index 0000000..3c1b992 --- /dev/null +++ b/abs/extra/tigervnc/vncsvc.rules @@ -0,0 +1,4 @@ +vncsvc ALL=(ALL) NOPASSWD: /usr/MythVantage/bin/mythinstall -s * +vncsvc ALL=(ALL) NOPASSWD: /usr/MythVantage/bin/MythVantage -s * +vncsvc ALL=(ALL) NOPASSWD: /usr/MythVantage/bin/systemconfig.py + |