mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
new file: projects/linux-pam.org/package.yml
new file: projects/linux-pam.org/test.c
This commit is contained in:
parent
4d1459ea22
commit
761fec27f2
56
projects/linux-pam.org/package.yml
Normal file
56
projects/linux-pam.org/package.yml
Normal file
|
@ -0,0 +1,56 @@
|
|||
distributable:
|
||||
url: https://github.com/linux-pam/linux-pam/releases/download/v{{version}}/Linux-PAM-{{version}}.tar.xz
|
||||
strip-components: 1
|
||||
versions:
|
||||
github: linux-pam/linux-pam
|
||||
platforms:
|
||||
- linux
|
||||
dependencies:
|
||||
github.com/thkukuk/libnsl: '*'
|
||||
sourceforge.net/libtirpc: '*'
|
||||
github.com/besser82/libxcrypt: '*'
|
||||
build:
|
||||
dependencies:
|
||||
freedesktop.org/pkg-config: '*'
|
||||
gnu.org/gcc: '*'
|
||||
gnu.org/make: '*'
|
||||
script:
|
||||
- ./configure $CONFIGURE_ARGS
|
||||
- make --jobs {{ hw.concurrency }}
|
||||
- make --jobs {{ hw.concurrency }} install
|
||||
- run: |
|
||||
sed -i.bak "s|{{prefix}}|\$(dirname \$0)/..|g" pam_namespace_helper
|
||||
rm *.bak
|
||||
working-directory: "{{prefix}}/sbin"
|
||||
env:
|
||||
CONFIGURE_ARGS:
|
||||
- --disable-debug
|
||||
- --disable-dependency-tracking
|
||||
- --prefix="{{prefix}}"
|
||||
- --libdir="{{prefix}}/lib"
|
||||
- --disable-db
|
||||
- --disable-silent-rules
|
||||
- --disable-selinux
|
||||
- --includedir={{prefix}}/include/security
|
||||
- --oldincludedir={{prefix}}/include
|
||||
- --enable-securedir={{prefix}}/lib/security
|
||||
- --sysconfdir={{prefix}}/etc
|
||||
- --with-xml-catalog={{prefix}}/etc/xml/catalog
|
||||
provides:
|
||||
- sbin/faillock
|
||||
- sbin/mkhomedir_helper
|
||||
- sbin/pam_namespace_helper
|
||||
- sbin/pam_timestamp_check
|
||||
- sbin/pwhistory_helper
|
||||
- sbin/unix_chkpwd
|
||||
- sbin/unix_update
|
||||
test:
|
||||
dependencies:
|
||||
freedesktop.org/pkg-config: '*'
|
||||
gnu.org/gcc: '*'
|
||||
script:
|
||||
- mkhomedir_helper || echo $? | grep 14
|
||||
- pkg-config --modversion pam | grep {{version}}
|
||||
- cc test.c -o test
|
||||
- ./test
|
||||
|
10
projects/linux-pam.org/test.c
Normal file
10
projects/linux-pam.org/test.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <security/pam_appl.h>
|
||||
#include <security/pam_client.h>
|
||||
#include <security/_pam_compat.h>
|
||||
#include <security/pam_ext.h>
|
||||
|
||||
int main() {
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Loading…
Reference in a new issue