libcap pam use flag & static library
This commit is contained in:
1 parent
78a5750b6b
commit
45883a89ec
1 file changed
+17
-3
@@ -8,20 +8,34 @@ email='aliriza.keskin@pardus.org.tr'
|
||||
maintainer='aliriza'
|
||||
license=('GPLv3')
|
||||
source=("https://mirrors.edge.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$version.tar.xz")
|
||||
depends=(pam)
|
||||
depends=()
|
||||
makedepends=( )
|
||||
md5sums=('00afd6e13bc94b2543b1a70770bdb41f')
|
||||
uses=()
|
||||
uses_extra=(pam)
|
||||
pam_depends=(pam)
|
||||
group=(sys.libs)
|
||||
arch=('x86_64')
|
||||
|
||||
cd $name-$version
|
||||
|
||||
cap_opts=(
|
||||
SUDO=""
|
||||
prefix=/usr
|
||||
KERNEL_HEADERS=/usr/include
|
||||
lib=lib64
|
||||
RAISE_SETFCAP=no
|
||||
$(use_opt pam PAM_CAP=yes PAM_CAP=no)
|
||||
)
|
||||
|
||||
build(){
|
||||
make DYNAMIC=yes KERNEL_HEADERS=/usr/include lib=lib64 prefix=/usr
|
||||
make ${cap_opts[@]} DYNAMIC=yes
|
||||
make ${cap_opts[@]} DYNAMIC=no
|
||||
}
|
||||
|
||||
package(){
|
||||
make RAISE_SETFCAP=no lib=lib64 prefix=/usr install
|
||||
make ${cap_opts[@]} install DYNAMIC=yes
|
||||
make ${cap_opts[@]} install DYNAMIC=no
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user