Skip to content

Commit

Permalink
New package: please-0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
edneville committed Jun 12, 2021
1 parent 691a50a commit d9388f4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions srcpkgs/please/files/please.pam
@@ -0,0 +1,4 @@
#%PAM-1.0
auth include system-auth
account include system-auth
session include system-auth
28 changes: 28 additions & 0 deletions srcpkgs/please/template
@@ -0,0 +1,28 @@
# Template file for 'pleaser'
pkgname=please
_binary=please
version=0.4.1
revision=1
wrksrc="${_binary}-v${version}"
build_style=cargo
makedepends="pam-devel"
short_desc="Polite and easy to configure regex-first sudo alternative "
maintainer="Ed Neville <ed@s5h.net>"
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=0c81449d57a6bbbf1577d6474349f845e9a8c7a074b27fd1a4ef119ccd4f3c64

pre_build() {
export CC_${RUST_BUILD//-/_}="${BUILD_CC}"
}

post_install() {
local manpage
vdoc README.md
vman man/please.ini.5
vman man/please.1
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
}

0 comments on commit d9388f4

Please sign in to comment.