From 7282ad658ca7f7d1b25ef557f3501594a4be8f44 Mon Sep 17 00:00:00 2001 From: Toyam Cox Date: Sun, 10 Jan 2016 12:48:16 -0500 Subject: [PATCH] New package: autox-0.1.1 --- srcpkgs/autox/files/autox/run | 6 ++++++ srcpkgs/autox/template | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 srcpkgs/autox/files/autox/run create mode 100644 srcpkgs/autox/template diff --git a/srcpkgs/autox/files/autox/run b/srcpkgs/autox/files/autox/run new file mode 100755 index 00000000000..999b52dc81e --- /dev/null +++ b/srcpkgs/autox/files/autox/run @@ -0,0 +1,6 @@ +#!/bin/sh +exec 2>&1 +[ -s conf ] && . ./conf +: ${USER:=nobody} +: ${TTY:=tty7} +exec setsid -w agetty -a $USER -n -l /usr/bin/autox -o $USER $TTY 38400 linux diff --git a/srcpkgs/autox/template b/srcpkgs/autox/template new file mode 100644 index 00000000000..4bc3437ec2b --- /dev/null +++ b/srcpkgs/autox/template @@ -0,0 +1,23 @@ +# Template file for 'autox' +pkgname=autox +version=0.1.1 +revision=1 +wrksrc=${pkgname}-${version}-${pkgname} +build_wrksrc=src +build_style=gnu-makefile +conf_files="/etc/pam.d/autox" +makedepends="pam-devel" +depends="pam" +short_desc="Automatically log in a specified user and run xinit" +maintainer="Toyam Cox " +license="MIT" +homepage="https://github.com/jsumners/autox" +distfiles="https://github.com/jsumners/autox/archive/${version}-autox.tar.gz" +checksum=f8cdea3bd1a2ba1fdc7ad4a592c641cb478641869a5d7f7fbbaffc7e3d0bc5bd + +do_install() { + vlicense ../LICENSE + vbin autox + vinstall autox.pam 755 /etc/pam.d autox + vsv autox +}