added source file
This commit is contained in:
parent
33a957dd92
commit
3d2a16eb9e
|
@ -0,0 +1,44 @@
|
||||||
|
pkgname=pam_radius_auth
|
||||||
|
pkgver=1.4.1
|
||||||
|
pkgrel=1
|
||||||
|
arch=(i686 x86_64)
|
||||||
|
url="http://freeradius.org/pam_radius_auth/"
|
||||||
|
license=('GPL3')
|
||||||
|
makedepends=('pam')
|
||||||
|
_pam_radius_hash='6bae92df885602b2558333bdb6d2db67d1365683'
|
||||||
|
source=(
|
||||||
|
"${pkgname}-${pkgver}.source::https://github.com/FreeRADIUS/pam_radius/tarball/${_pam_radius_hash}"
|
||||||
|
)
|
||||||
|
sha512sums=('302447e861d228473210b95a03307c2465be391eb61b4d05b565afd438de9809daff3854c6116195e5e1482784016dd0ebe7727ac14035f115227ad691a8328a')
|
||||||
|
|
||||||
|
|
||||||
|
_conf_path="etc/raddb"
|
||||||
|
backup=("${_conf_path}/server")
|
||||||
|
|
||||||
|
build() {
|
||||||
|
_pkgsrc=${srcdir}/${pkgname}-${pkgver}
|
||||||
|
rm -rf ${_pkgsrc}
|
||||||
|
mv FreeRADIUS-pam_radius-* ${pkgname}-${pkgver}
|
||||||
|
|
||||||
|
cd ${pkgname}-${pkgver}
|
||||||
|
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--sbindir=/usr/bin \
|
||||||
|
--libdir=/usr/lib \
|
||||||
|
--localstatedir=/var
|
||||||
|
PATH="${PATH}:${pkgsrc}" make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
|
_build_path="${srcdir}/${pkgname}-${pkgver}"
|
||||||
|
|
||||||
|
mkdir -p ${pkgdir}/${_conf_path}/
|
||||||
|
|
||||||
|
install -d -m700 "${pkgdir}/${_conf_path}/"
|
||||||
|
|
||||||
|
install -D -m600 "${_build_path}/pam_radius_auth.conf" "${pkgdir}/${_conf_path}/server"
|
||||||
|
install -D -m600 "${_build_path}/USAGE" "${pkgdir}/${_conf_path}/README"
|
||||||
|
install -D -m755 "${_build_path}/pam_radius_auth.so" "${pkgdir}/usr/lib/security/pam_radius_auth.so"
|
||||||
|
}
|
Loading…
Reference in New Issue