comparison core/consolekit2/consolekit2.sh @ 516:014d018468fb

core: use new FHS
author David Demelier <markand@malikania.fr>
date Tue, 09 Apr 2019 20:22:00 +0200
parents 9deb4fcc5475
children bad483aace64
comparison
equal deleted inserted replaced
515:030ebf8e0a69 516:014d018468fb
35 : ${SELINUX:=no} 35 : ${SELINUX:=no}
36 : ${UDEV:=yes} 36 : ${UDEV:=yes}
37 37
38 if [ "$PAM" = "yes" ]; then 38 if [ "$PAM" = "yes" ]; then
39 PKGDEPENDS="security/linux-pam $PKGDEPENDS" 39 PKGDEPENDS="security/linux-pam $PKGDEPENDS"
40 with_pam="--enable-pam-module --with-pam-module-dir=/usr/lib/security" 40 with_pam="--enable-pam-module --with-pam-module-dir=/lib/security"
41 else 41 else
42 with_pam="--disable-pam-module" 42 with_pam="--disable-pam-module"
43 fi 43 fi
44 44
45 if [ "$POLKIT" = "yes" ]; then 45 if [ "$POLKIT" = "yes" ]; then
73 LDFLAGS="$LDFLAGS" \ 73 LDFLAGS="$LDFLAGS" \
74 LIBS="$LIBS" \ 74 LIBS="$LIBS" \
75 ./configure \ 75 ./configure \
76 --build=$CBUILD \ 76 --build=$CBUILD \
77 --host=$CHOST \ 77 --host=$CHOST \
78 --prefix=/usr \ 78 --prefix=/ \
79 --sysconfdir=/etc \ 79 --sysconfdir=/etc \
80 --localstatedir=/var \ 80 --localstatedir=/var \
81 --with-pid-file=/var/run/consolekit2.pid \ 81 --with-pid-file=/var/run/consolekit2.pid \
82 $with_pam \ 82 $with_pam \
83 $with_polkit \ 83 $with_polkit \
84 $with_selinux \ 84 $with_selinux \
85 $with_udev 85 $with_udev
86 make 86 make
87 make install DESTDIR=$DESTDIR 87 make install DESTDIR=$DESTDIR
88 rm -f $DESTDIR/usr/lib/security/pam_ck_connector.la 88 rm -f $DESTDIR/lib/security/pam_ck_connector.la
89 rm -f $DESTDIR/usr/lib/libck-connector.la 89 rm -f $DESTDIR/lib/libck-connector.la
90 rm -f $DESTDIR/usr/lib/libconsolekit.la 90 rm -f $DESTDIR/lib/libconsolekit.la
91 91
92 popd 92 popd
93 rm -rf ConsoleKit2-$PKGVERSION 93 rm -rf ConsoleKit2-$PKGVERSION
94 } 94 }