From 588eab4eb3f9dd998efbe2f37b7dd200c5cac9a5 Mon Sep 17 00:00:00 2001 From: ed neville Date: Thu, 11 Mar 2021 19:11:45 +0000 Subject: [PATCH] New package: please-0.3.25 --- srcpkgs/pleaser/files/please.pam | 4 ++++ srcpkgs/pleaser/template | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 srcpkgs/pleaser/files/please.pam create mode 100644 srcpkgs/pleaser/template diff --git a/srcpkgs/pleaser/files/please.pam b/srcpkgs/pleaser/files/please.pam new file mode 100644 index 00000000000000..10a4824b56e023 --- /dev/null +++ b/srcpkgs/pleaser/files/please.pam @@ -0,0 +1,4 @@ +#%PAM-1.0 +auth include system-auth +account include system-auth +session include system-auth diff --git a/srcpkgs/pleaser/template b/srcpkgs/pleaser/template new file mode 100644 index 00000000000000..f62e67ea4856db --- /dev/null +++ b/srcpkgs/pleaser/template @@ -0,0 +1,31 @@ +# Template file for 'pleaser' +pkgname=pleaser +_binary=please +version=0.3.25 +revision=1 +wrksrc="${_binary}-v${version}" +build_style=cargo +makedepends="cmake llvm clang pam-devel" +short_desc="Polite and easy to configure regex-first sudo alternative " +maintainer="Ed Neville " +license="GPL-3.0-or-later" +homepage="https://www.usenix.org.uk/content/please.html" +distfiles="https://gitlab.com/edneville/${_binary}/-/archive/v${version}/${_binary}-v${version}.tar.gz" +checksum=2b9175175d23e8a2880a059dccef53121eae4452f43b86ed259261b3412210de + +pre_build() { + export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}" + export CC_${RUST_BUILD//-/_}="${BUILD_CC}" +} + +post_install() { + local manpage + vdoc README.md + manpage=$(find ${wrksrc} -name please.ini.5) + vman ${manpage} + manpage=$(find ${wrksrc} -name please.1) + vman ${manpage} + vinstall ${FILESDIR}/please.pam 644 etc/pam.d please + vinstall ${FILESDIR}/please.pam 644 etc/pam.d pleaseedit + chmod 4755 $DESTDIR/usr/bin/please $DESTDIR/usr/bin/pleaseedit +}