summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmish2018-10-12 17:33:30 +0530
committerAmish2018-10-12 18:03:11 +0530
commit6dd93d2e8eee616d6e299d96c27cac4ff350abcb (patch)
treecfcb9f787df48c5e4509f09e9b37f1796c822084
parentedf3ac3cd54c6b516ad7bedea88838e6079f4e28 (diff)
downloadaur-6dd93d2e8eee616d6e299d96c27cac4ff350abcb.tar.gz
Simplify. Create pam.ini in PKGBUILD itself
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
-rw-r--r--pam.ini2
3 files changed, 4 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3f04fd8eea9..bf27e960a92 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -11,10 +11,8 @@ pkgbase = php-pam
depends = pam
depends = php-pear
source = php-pam-2.1.0.tar.gz::https://github.com/amishmm/php-pam/archive/v2.1.0.tar.gz
- source = pam.ini
source = php
md5sums = 0182234a17611e79f537c0b16927fe8e
- md5sums = 9582d5f0476e486f2c3084940f1abd86
md5sums = 5fb207f61ff94b0cc7a2dcc1e3c1c388
pkgname = php-pam
diff --git a/PKGBUILD b/PKGBUILD
index b7027bceb27..a316c068276 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,9 +11,8 @@ license=('PHP')
depends=('php>=7.2.0' 'pam' 'php-pear')
makedepends=('autoconf')
#install=php-pam.install
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/amishmm/${pkgname}/archive/v${pkgver}.tar.gz" pam.ini php)
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/amishmm/${pkgname}/archive/v${pkgver}.tar.gz" php)
md5sums=('0182234a17611e79f537c0b16927fe8e'
- '9582d5f0476e486f2c3084940f1abd86'
'5fb207f61ff94b0cc7a2dcc1e3c1c388')
build() {
@@ -26,6 +25,7 @@ build() {
package() {
cd "${pkgname}-${pkgver}"
make INSTALL_ROOT="${pkgdir}" install
- install -D -m644 "${srcdir}/pam.ini" "${pkgdir}/etc/php/conf.d/pam.ini"
- install -D -m644 "${srcdir}/php" ${pkgdir}/etc/pam.d/php
+ echo -e "extension=pam.so;\npam.servicename=\"php\";" | \
+ install -Dm644 /dev/stdin "${pkgdir}/etc/php/conf.d/pam.ini"
+ install -Dm644 "${srcdir}/php" ${pkgdir}/etc/pam.d/php
}
diff --git a/pam.ini b/pam.ini
deleted file mode 100644
index 8891b49af5d..00000000000
--- a/pam.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-extension=pam.so;
-pam.servicename="php";