wok-next rev 19789
Add js, up pam, polkit, polkit-pam; fix typo in btrfs-progs.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 20 03:48:54 2017 +0300 (2017-06-20) |
parents | ca2828ae20d6 |
children | b938e6730252 |
files | btrfs-progs/receipt js/description.txt js/receipt pam-dev/receipt pam/receipt pam/stuff/etc/pam.d/other pam/stuff/other polkit-dev/receipt polkit-pam/receipt polkit-pam/stuff/polkit-1 polkit/receipt |
line diff
1.1 --- a/btrfs-progs/receipt Mon Jun 19 22:34:23 2017 +0300 1.2 +++ b/btrfs-progs/receipt Tue Jun 20 03:48:54 2017 +0300 1.3 @@ -42,7 +42,7 @@ 1.4 ;; 1.5 btrfs-libs) 1.6 copy *.so* 1.7 - CATEGORY="system-tools|library" 1.8 + CAT="system-tools|library" 1.9 DEPENDS="lzo util-linux-blkid util-linux-uuid zlib" 1.10 ;; 1.11 btrfs-mkfs)
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/js/description.txt Tue Jun 20 03:48:54 2017 +0300 2.3 @@ -0,0 +1,2 @@ 2.4 +SpiderMonkey is Mozilla's JavaScript engine written in C and C++. It is used in 2.5 +various Mozilla products, including Firefox, and is available under the MPL2.
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/js/receipt Tue Jun 20 03:48:54 2017 +0300 3.3 @@ -0,0 +1,45 @@ 3.4 +# SliTaz package receipt v2. 3.5 + 3.6 +PACKAGE="js" 3.7 +VERSION="17.0.0" 3.8 +CATEGORY="libdevel" 3.9 +SHORT_DESC="Mozilla's JavaScript engine written in C/C++" 3.10 +MAINTAINER="al.bobylev@gmail.com" 3.11 +LICENSE="MPL2" 3.12 +WEB_SITE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey" 3.13 + 3.14 +TARBALL="mozjs$VERSION.tar.gz" 3.15 +WGET_URL="http://ftp.mozilla.org/pub/mozilla.org/js/$TARBALL" 3.16 + 3.17 +BUILD_DEPENDS="perl python nspr-dev zlib-dev" 3.18 +SPLIT="js-dev" 3.19 + 3.20 +# Rules to configure and make the package. 3.21 +compile_rules() 3.22 +{ 3.23 + cd js/src && 3.24 + 3.25 + sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl && 3.26 + 3.27 + ./configure \ 3.28 + --enable-readline \ 3.29 + --enable-threadsafe \ 3.30 + --with-system-ffi \ 3.31 + --with-system-nspr \ 3.32 + $CONFIGURE_ARGS && 3.33 + make && make install && 3.34 + 3.35 + find $install/usr/include/js-${VERSION%.*}/ \ 3.36 + $install/usr/lib/libmozjs-${VERSION%.*}.a \ 3.37 + $install/usr/lib/pkgconfig/mozjs-${VERSION%.*}.pc \ 3.38 + -type f -exec chmod -v 644 '{}' \; 3.39 +} 3.40 + 3.41 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.42 +genpkg_rules() 3.43 +{ 3.44 + case $PACKAGE in 3.45 + js) copy @std; DEPENDS="ncurses nspr readline zlib";; 3.46 + js-dev) copy @dev; DEPENDS="js nspr-dev";; 3.47 + esac 3.48 +}
4.1 --- a/pam-dev/receipt Mon Jun 19 22:34:23 2017 +0300 4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 4.3 @@ -1,21 +0,0 @@ 4.4 -# SliTaz package receipt. 4.5 - 4.6 -PACKAGE="pam-dev" 4.7 -VERSION="1.3.0" 4.8 -CATEGORY="development" 4.9 -SHORT_DESC="Pluggable Authentication Modules, development files." 4.10 -MAINTAINER="pascal.bellard@slitaz.org" 4.11 -LICENSE="BSD GPL2" 4.12 -WEB_SITE="http://www.us.kernel.org/pub/linux/libs/pam/" 4.13 -HOST_ARCH="i486 arm" 4.14 - 4.15 -WANTED="pam" 4.16 -DEPENDS="pam" 4.17 - 4.18 -# Rules to gen a SliTaz package suitable for Tazpkg. 4.19 -genpkg_rules() 4.20 -{ 4.21 - mkdir -p $fs/lib $fs/usr 4.22 - cp -a $install/usr/include $fs/usr 4.23 - ln -s security $fs/usr/include/pam 4.24 -}
5.1 --- a/pam/receipt Mon Jun 19 22:34:23 2017 +0300 5.2 +++ b/pam/receipt Tue Jun 20 03:48:54 2017 +0300 5.3 @@ -1,9 +1,9 @@ 5.4 -# SliTaz package receipt. 5.5 +# SliTaz package receipt v2. 5.6 5.7 PACKAGE="pam" 5.8 VERSION="1.3.0" 5.9 CATEGORY="system-tools" 5.10 -SHORT_DESC="Pluggable Authentication Modules." 5.11 +SHORT_DESC="Pluggable Authentication Modules for Linux" 5.12 MAINTAINER="pascal.bellard@slitaz.org" 5.13 LICENSE="BSD GPL2" 5.14 WEB_SITE="http://www.linux-pam.org/" 5.15 @@ -12,35 +12,46 @@ 5.16 TARBALL="$PACKAGE-$VERSION.tar.bz2" 5.17 WGET_URL="http://www.linux-pam.org/library/Linux-PAM-$VERSION.tar.bz2" 5.18 5.19 -DEPENDS="glibc-base libdb" 5.20 -BUILD_DEPENDS="flex db-dev libdb" 5.21 +BUILD_DEPENDS="db-dev gettext" 5.22 +SPLIT="pam-dev" 5.23 5.24 # Rules to configure and make the package. 5.25 compile_rules() 5.26 { 5.27 ./configure \ 5.28 --sysconfdir=/etc \ 5.29 + --libdir=/usr/lib \ 5.30 + --disable-regenerate-docu \ 5.31 + --enable-securedir=/lib/security \ 5.32 + --docdir=/usr/share/doc/Linux-PAM-$VERSION \ 5.33 $CONFIGURE_ARGS && 5.34 - make && make install 5.35 + make && make install && 5.36 + 5.37 + mkdir -p $install/etc/pam.d && 5.38 + cp $stuff/other $install/etc/pam.d && 5.39 + 5.40 + chmod -v 4755 $install/sbin/unix_chkpwd && 5.41 + 5.42 + for file in pam pam_misc pamc; do 5.43 + mv -v $install/usr/lib/lib$file.so.* $install/lib && 5.44 + ln -sfv ../../lib/$(readlink $install/usr/lib/lib$file.so) \ 5.45 + $install/usr/lib/lib$file.so 5.46 + done 5.47 } 5.48 5.49 # Rules to gen a SliTaz package suitable for Tazpkg. 5.50 genpkg_rules() 5.51 { 5.52 - mkdir -p $fs/lib 5.53 - cp -a $install/etc $fs 5.54 - cp -a $install/sbin $fs 5.55 - cp -a $install/lib/*so* $fs/lib 5.56 - cp -a $install/lib/security $fs/lib 5.57 - rm -f $fs/lib/security/*.la 5.58 - cp -a $stuff/* $fs 5.59 + case $PACKAGE in 5.60 + pam) copy @std; DEPENDS="libdb";; 5.61 + *-dev) copy @dev; DEPENDS="pam db-dev";; 5.62 + esac 5.63 } 5.64 5.65 -pre_remove() 5.66 -{ 5.67 - # If busybox-pam is installed, trigger its removal right now. Once pam shared 5.68 - # library will be removed, it will be too late. Don't worry about this, while 5.69 - # removing busybox-pam will replace itself by a non-pam busybox. 5.70 +# If busybox-pam is installed, trigger its removal right now. Once pam shared 5.71 +# library will be removed, it will be too late. Don't worry about this, while 5.72 +# removing busybox-pam will replace itself by a non-pam busybox. 5.73 +pre_remove_pam() { 5.74 if [ -d /var/lib/tazpkg/installed/busybox-pam ]; then 5.75 tazpkg remove busybox-pam --auto 5.76 fi
6.1 --- a/pam/stuff/etc/pam.d/other Mon Jun 19 22:34:23 2017 +0300 6.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 6.3 @@ -1,7 +0,0 @@ 6.4 -#%PAM-1.0 6.5 -# specify the PAM fallback behaviour 6.6 - 6.7 -auth required pam_unix.so 6.8 -account required pam_unix.so 6.9 -password required pam_unix.so md5 6.10 -session required pam_unix.so
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/pam/stuff/other Tue Jun 20 03:48:54 2017 +0300 7.3 @@ -0,0 +1,7 @@ 7.4 +#%PAM-1.0 7.5 +# specify the PAM fallback behaviour 7.6 + 7.7 +auth required pam_unix.so 7.8 +account required pam_unix.so 7.9 +password required pam_unix.so md5 7.10 +session required pam_unix.so
8.1 --- a/polkit-dev/receipt Mon Jun 19 22:34:23 2017 +0300 8.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 8.3 @@ -1,27 +0,0 @@ 8.4 -# SliTaz package receipt. 8.5 - 8.6 -PACKAGE="polkit-dev" 8.7 -VERSION="0.104" 8.8 -CATEGORY="development" 8.9 -SHORT_DESC="devel files for polkit" 8.10 -MAINTAINER="slaxemulator@gmail.com" 8.11 -LICENSE="LGPL2" 8.12 -WEB_SITE="http://www.freedesktop.org/wiki/Software/PolicyKit" 8.13 -PROVIDE="PolicyKit-dev" 8.14 - 8.15 -WANTED="polkit" 8.16 -DEPENDS="polkit" 8.17 - 8.18 -# Rules to gen a SliTaz package suitable for Tazpkg. 8.19 -genpkg_rules() 8.20 -{ 8.21 - mkdir -p $fs/usr/lib/polkit-1/extensions $fs/usr/share 8.22 - cp -a $install/usr/include $fs/usr 8.23 - cp -a $install/usr/lib/pkgconfig $fs/usr/lib 8.24 - cp -a $install/usr/lib/*.*a $fs/usr/lib 8.25 - cp -a $install/usr/share/gir-1.0 $fs/usr/share 8.26 - cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib 8.27 - cp -a $install/usr/lib/polkit-1/extensions/*.*a \ 8.28 - $fs/usr/lib/polkit-1/extensions 8.29 -} 8.30 -
9.1 --- a/polkit-pam/receipt Mon Jun 19 22:34:23 2017 +0300 9.2 +++ b/polkit-pam/receipt Tue Jun 20 03:48:54 2017 +0300 9.3 @@ -1,47 +1,71 @@ 9.4 -# SliTaz package receipt. 9.5 +# SliTaz package receipt v2. 9.6 9.7 PACKAGE="polkit-pam" 9.8 -VERSION="0.104" 9.9 +VERSION="0.113" 9.10 CATEGORY="base-system" 9.11 -SHORT_DESC="Polkit with PAM support." 9.12 +SHORT_DESC="Authorization manager, with PAM support" 9.13 MAINTAINER="slaxemulator@gmail.com" 9.14 LICENSE="LGPL2" 9.15 -SOURCE="polkit" 9.16 -TARBALL="$SOURCE-$VERSION.tar.gz" 9.17 -WEB_SITE="http://www.freedesktop.org/wiki/Software/PolicyKit" 9.18 -WGET_URL="http://hal.freedesktop.org/releases/$TARBALL" 9.19 -PROVIDE="polkit" 9.20 +WEB_SITE="https://www.freedesktop.org/wiki/Software/polkit/" 9.21 9.22 -DEPENDS="glib gobject-introspection dbus dbus-glib expat pam" 9.23 -BUILD_DEPENDS="glib-dev gobject-introspection-dev dbus-dev \ 9.24 -dbus-glib-dev expat-dev pam-dev intltool" 9.25 +TARBALL="polkit-$VERSION.tar.gz" 9.26 +WGET_URL="http://www.freedesktop.org/software/polkit/releases/$TARBALL" 9.27 + 9.28 +BUILD_DEPENDS="glib-dev js-dev expat-dev intltool pam-dev \ 9.29 +gobject-introspection-dev gtk-doc" 9.30 +SPLIT="polkit-pam-dev" 9.31 9.32 # Rules to configure and make the package. 9.33 compile_rules() 9.34 { 9.35 - cd $src 9.36 + addgroup -g 27 polkitd && 9.37 + adduser -g "PolicyKit Daemon Owner" -h /etc/polkit-1 -u 27 \ 9.38 + -G polkitd -s /bin/false -D polkitd && 9.39 + 9.40 ./configure \ 9.41 - --prefix=/usr \ 9.42 --sysconfdir=/etc \ 9.43 --localstatedir=/var \ 9.44 - --libexecdir=/usr/lib/polkit-1 \ 9.45 - --disable-man-pages \ 9.46 - --disable-gtk-doc \ 9.47 + --enable-libsystemd-login=no \ 9.48 --with-authfw=pam \ 9.49 $CONFIGURE_ARGS && 9.50 - make && make install 9.51 + make && make install && 9.52 + 9.53 + mkdir -p $install/etc/pam.d && 9.54 + cp $stuff/polkit-1 $install/etc/pam.d && 9.55 + 9.56 + # for access file in web interface, will be changed back in post-install to 700 9.57 + chmod 755 "$install/etc/polkit-1/rules.d/" 9.58 } 9.59 9.60 # Rules to gen a SliTaz package suitable for Tazpkg. 9.61 genpkg_rules() 9.62 { 9.63 - mkdir -p $fs/usr/lib $fs/usr/share 9.64 - cp -a $install/usr/bin $fs/usr 9.65 - cp -a $install/etc $fs 9.66 - cp -a $install/usr/lib/*.so* $fs/usr/lib 9.67 - cp -a $install/usr/lib/polkit-1 $fs/usr/lib 9.68 - rm $fs/usr/lib/polkit-1/extensions/*.*a 9.69 - cp -a $install/usr/share/dbus-1 $fs/usr/share 9.70 - cp -a $install/usr/share/polkit-1 $fs/usr/share 9.71 - cp -a $install/var $fs 9.72 + case $PACKAGE in 9.73 + polkit-pam) 9.74 + copy @std 9.75 + DEPENDS="expat glib js pam" 9.76 + PROVIDE="polkit" 9.77 + ;; 9.78 + *-dev) 9.79 + copy @dev 9.80 + DEPENDS="polkit expat-dev glib-dev js-dev pam-dev" 9.81 + PROVIDE="polkit-dev" 9.82 + ;; 9.83 + esac 9.84 } 9.85 + 9.86 +post_install_polkit() { 9.87 + chroot "$1/" /usr/sbin/addgroup -g 27 polkitd && 9.88 + chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \ 9.89 + -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd 9.90 + 9.91 + mkdir -p "$1/var" 9.92 + 9.93 + chmod 4755 "$1/usr/lib/polkit-1/polkit-agent-helper-1" 9.94 + chmod 4755 "$1/usr/bin/pkexec" 9.95 + 9.96 + chmod 700 "$1/etc/polkit-1/rules.d/" 9.97 + chown 27:27 "$1/etc/polkit-1/rules.d/" 9.98 + 9.99 + install -dm700 -o27 -g27 "$1/usr/share/polkit-1/rules.d" 9.100 +}
10.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 10.2 +++ b/polkit-pam/stuff/polkit-1 Tue Jun 20 03:48:54 2017 +0300 10.3 @@ -0,0 +1,8 @@ 10.4 +# Begin /etc/pam.d/polkit-1 10.5 + 10.6 +auth include system-auth 10.7 +account include system-account 10.8 +password include system-password 10.9 +session include system-session 10.10 + 10.11 +# End /etc/pam.d/polkit-1
11.1 --- a/polkit/receipt Mon Jun 19 22:34:23 2017 +0300 11.2 +++ b/polkit/receipt Tue Jun 20 03:48:54 2017 +0300 11.3 @@ -1,45 +1,67 @@ 11.4 -# SliTaz package receipt. 11.5 +# SliTaz package receipt v2. 11.6 11.7 PACKAGE="polkit" 11.8 -VERSION="0.104" 11.9 +VERSION="0.113" 11.10 CATEGORY="base-system" 11.11 -SHORT_DESC="Application development toolkit for controlling system-wide privileges." 11.12 +SHORT_DESC="Authorization manager" 11.13 MAINTAINER="slaxemulator@gmail.com" 11.14 LICENSE="LGPL2" 11.15 -TARBALL="$PACKAGE-$VERSION.tar.gz" 11.16 -WEB_SITE="http://www.freedesktop.org/wiki/Software/PolicyKit" 11.17 -WGET_URL="http://hal.freedesktop.org/releases/$TARBALL" 11.18 +WEB_SITE="https://www.freedesktop.org/wiki/Software/polkit/" 11.19 CROSS="error: cannot check for file existence when cross compiling" 11.20 11.21 -DEPENDS="glib dbus dbus-glib expat util-linux-eject" 11.22 -BUILD_DEPENDS="glib-dev gobject-introspection-dev dbus-dev \ 11.23 -dbus-glib-dev expat-dev intltool" 11.24 +TARBALL="polkit-$VERSION.tar.gz" 11.25 +WGET_URL="http://www.freedesktop.org/software/polkit/releases/$TARBALL" 11.26 + 11.27 +BUILD_DEPENDS="glib-dev js-dev expat-dev intltool \ 11.28 +gobject-introspection-dev gtk-doc" 11.29 +SPLIT="polkit-dev" 11.30 11.31 # Rules to configure and make the package. 11.32 compile_rules() 11.33 { 11.34 + addgroup -g 27 polkitd && 11.35 + adduser -g "PolicyKit Daemon Owner" -h /etc/polkit-1 -u 27 \ 11.36 + -G polkitd -s /bin/false -D polkitd && 11.37 + 11.38 ./configure \ 11.39 - --prefix=/usr \ 11.40 --sysconfdir=/etc \ 11.41 --localstatedir=/var \ 11.42 - --libexecdir=/usr/lib/polkit-1 \ 11.43 - --disable-man-pages \ 11.44 - --disable-gtk-doc \ 11.45 + --enable-libsystemd-login=no \ 11.46 --with-authfw=shadow \ 11.47 $CONFIGURE_ARGS && 11.48 - make && make install 11.49 + make && make install && 11.50 + 11.51 + # for access file in web interface, will be changed back in post-install to 700 11.52 + chmod 755 "$install/etc/polkit-1/rules.d/" 11.53 } 11.54 11.55 # Rules to gen a SliTaz package suitable for Tazpkg. 11.56 genpkg_rules() 11.57 { 11.58 - mkdir -p $fs/usr/lib $fs/usr/share 11.59 - cp -a $install/usr/bin $fs/usr 11.60 - cp -a $install/etc $fs 11.61 - cp -a $install/usr/lib/*.so* $fs/usr/lib 11.62 - cp -a $install/usr/lib/polkit-1 $fs/usr/lib 11.63 - rm $fs/usr/lib/polkit-1/extensions/*.*a 11.64 - cp -a $install/usr/share/dbus-1 $fs/usr/share 11.65 - cp -a $install/usr/share/polkit-1 $fs/usr/share 11.66 - cp -a $install/var $fs 11.67 + case $PACKAGE in 11.68 + polkit) 11.69 + copy @std 11.70 + DEPENDS="expat glib js" 11.71 + ;; 11.72 + *-dev) 11.73 + copy @dev 11.74 + DEPENDS="polkit expat-dev glib-dev js-dev" 11.75 + ;; 11.76 + esac 11.77 } 11.78 + 11.79 +post_install_polkit() { 11.80 + chroot "$1/" /usr/sbin/addgroup -g 27 polkitd && 11.81 + chroot "$1/" /usr/sbin/adduser -g "PolicyKit Daemon Owner" \ 11.82 + -h /etc/polkit-1 -u 27 -G polkitd -s /bin/false -D polkitd 11.83 + 11.84 + mkdir -p "$1/var" 11.85 + 11.86 + chmod 4755 "$1/usr/lib/polkit-1/polkit-agent-helper-1" 11.87 + chmod 4755 "$1/usr/bin/pkexec" 11.88 + 11.89 + chmod 700 "$1/etc/polkit-1/rules.d/" 11.90 + chown 27:27 "$1/etc/polkit-1/rules.d/" 11.91 + 11.92 + install -dm700 -o27 -g27 "$1/usr/share/polkit-1/rules.d" 11.93 +}