diff --git a/pkgmngt/packageManager.xml.pacman b/pkgmngt/packageManager.xml.pacman
index b4ab2d5..b671595 100644
--- a/pkgmngt/packageManager.xml.pacman
+++ b/pkgmngt/packageManager.xml.pacman
@@ -9,15 +9,20 @@ book if you prefer. That slightly changes the aspect if you render
it in html -->
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+%general-entities;
]>
@@ -34,6 +39,8 @@ Do not change anything, except the url and the md5 checksum. -->
All Packages
Download:
MD5 sum: &curl-md5;
+ Download:
+ MD5 sum: &fakeroot-md5;
Download:
MD5 sum: &libarchive-md5;
Download:
@@ -74,6 +81,28 @@ xxx-x-added before (x, digits).-->
+
+
+
+
+ openssl
+ &openssl-version;
+ &openssl-url;
+
+
+ openssl-&openssl-version;
+
+
+
+./config --prefix=/tools \
+ --openssldir=/tools/etc/ssl \
+ --libdir=lib
+make
+make install
+
+
+
+
@@ -95,6 +124,45 @@ xxx-x-added before (x, digits).-->
+
+
+
+
+ libcap
+ &libcap-version;
+ &libcap-url;
+
+
+ libcap-&libcap-version;
+
+
+
+make lib=lib prefix=/tools GOLANG=no PAM_CAP=no
+make lib=lib prefix=/tools GOLANG=no PAM_CAP=no install
+
+
+
+
+
+
+
+
+ fakeroot
+ &fakeroot-version;
+ &fakeroot-url;
+
+
+ fakeroot-&fakeroot-version;
+
+
+
+./configure --prefix=/tools
+make
+make install
+
+
+
+
@@ -116,17 +184,23 @@ file (test-log). If testing is not enabled, they are not executed at all. Do not
put line breaks before and after your instructions. without
remap attribute are considered configuration instructions and executed last. You
can also use remap="adjust" for the same purpose. -->
-./configure --prefix=/tools \
- --without-openssl \
- PKG_CONFIG_PATH=/tools/lib/pkgconfig \
- DUPATH=/tools/bin/du
+mkdir build
+cd build
+meson --prefix=/tools \
+ --sysconfdir=/tools/etc \
+ --localstatedir=/tools/var \
+ -Dcrypto=openssl \
+ -Ddoc=disabled \
+ -Dgpgme=disabled \
+ -Dpkg_config_path=/tools/lib/pkgconfig
-make
+ninja
-make install
+ninja install
sed -e 's@/usr@/tools@g' \
-e 's/\([^!]\)strip/\1!strip/' \
+ -e 's/\([^!]\)libtool/\1!libtool/' \
-e 's/\([^!]\)zipman/\1!zipman/' \
-i /tools/etc/makepkg.conf
cat >> /tools/etc/makepkg.conf << EOF
@@ -146,6 +220,320 @@ EOF
+
+
+
+
+
+ libarchive
+ &libarchive-version;
+ &libarchive-url;
+
+
+ Libarchive-&libarchive-version;
+
+
+
+./configure --prefix=/usr \
+ --without-bz2lib \
+ --without-xml2 \
+ --enable-bsdtar=static \
+ --enable-bsdcpio=static
+make
+make install
+
+
+
+
+
+
+
+
+ openssl
+ &openssl-version;
+ &openssl-url;
+
+
+ openssl-&openssl-version;
+
+
+
+
+./config --prefix=/usr \
+ --openssldir=/etc/ssl \
+ --libdir=lib \
+ shared
+make
+make install
+
+
+
+
+
+
+
+
+ curl
+ &curl-version;
+ &curl-url;
+
+
+ Curl-&curl-version;
+
+
+
+./configure --prefix=/usr \
+ --disable-static
+make
+make install
+
+
+
+
+
+
+
+
+ libcap
+ &libcap-version;
+ &libcap-url;
+
+
+ libcap-&libcap-version;
+
+
+
+sed -i '/install.*STACAPLIBNAME/d' libcap/Makefile
+make lib=lib
+make lib=lib PKGCONFIGDIR=/usr/lib/pkgconfig install
+chmod -v 755 /lib/libcap.so.&libcap-version;
+mv -v /lib/libpsx.a /usr/lib
+rm -v /lib/libcap.so
+ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so
+
+
+
+
+
+
+
+
+ fakeroot
+ &fakeroot-version;
+ &fakeroot-url;
+
+
+ fakeroot-&fakeroot-version;
+
+
+
+./configure --prefix=/usr
+make
+make install
+
+
+
+
+
+
+
+
+ zlib
+ &zlib-version;
+ &zlib-url;
+
+
+ zlib-&zlib-version;
+
+
+
+./configure --prefix=/usr
+make
+make install
+mv -v /usr/lib/libz.so.* /lib
+ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so
+
+
+
+
+
+
+
+
+ libffi
+ &libffi-version;
+ &libffi-url;
+
+
+ libffi-&libffi-version;
+
+
+
+./configure --prefix=/usr --disable-static --with-gcc-arch=native
+make
+make install
+
+
+
+
+
+
+
+
+ Python
+ &python-version;
+ &python-url;
+
+
+ Python-&python-version;
+
+
+
+./configure --prefix=/usr --without-ensurepip --enable-shared
+make
+make install
+
+
+
+
+
+
+
+
+ ninja
+ &ninja-version;
+ &ninja-url;
+
+
+ ninja-&ninja-version;
+
+
+
+python3 configure.py --bootstrap
+install -vm755 ninja /usr/bin/
+
+
+
+
+
+
+
+
+ meson
+ &meson-version;
+ &meson-url;
+
+
+ meson-&meson-version;
+
+
+
+cp meson.py /usr/bin/meson
+cp -rv mesonbuild /usr/bin
+
+
+
+
+
+
+
+
+ pkg-config
+ &pkgconfig-version;
+ &pkgconfig-url;
+
+
+ pkg-config-&pkgconfig-version;
+
+
+
+./configure --prefix=/usr \
+ --with-internal-glib \
+ --disable-host-tool \
+ --docdir=/usr/share/doc/pkg-config-&pkgconfig-version;
+make
+make install
+
+
+
+
+
+
+
+
+ pacman
+ &pacman-version;
+ &pacman-url;
+
+
+ Pacman-&pacman-version;
+
+
+
+mkdir build
+cd build
+meson --prefix=/usr \
+ -Dcrypto=openssl \
+ -Ddoc=disabled \
+ -Dgpgme=disabled
+
+ninja
+
+ninja install
+
+sed -e 's/\([^!]\)strip/\1!strip/' \
+ -e 's/\([^!]\)libtool/\1!libtool/' \
+ -e 's/\([^!]\)zipman/\1!zipman/' \
+ -i /etc/makepkg.conf
+cat >> /etc/makepkg.conf << EOF
+BUILDDIR=/sources
+PKGDEST=/var/lib/packages
+PACKAGER="Pierre Labastie <lnimbus@club-internet.fr>"
+EOF
+cat >> /etc/pacman.conf << EOF
+DBPath = /var/lib/pacman/
+CacheDir = /var/cache/pacman/pkg/
+LogFile = /var/log/pacman.log
+SigLevel = Never
+# Repository: do not add one now: repo-add needs openssl.
+EOF
+chown tester:tester /var/lib/{packages,pacman}
+
+
+
+
+
+
+
+
+
+ shadow
+ &shadow-version;
+ &shadow-url;
+
+
+ shadow-&shadow-version;
+
+
+
+sed -i 's/groups$(EXEEXT) //' src/Makefile.in
+find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
+find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \;
+find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;
+sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \
+ -e 's:/var/spool/mail:/var/mail:' \
+ -i etc/login.defs
+sed -i 's/1000/999/' etc/useradd
+touch /usr/bin/passwd
+./configure --sysconfdir=/etc \
+ --with-group-name-max-length=32
+make
+make install
+
+
+
+
@@ -161,7 +549,12 @@ following line -->
Creating Essential Files
-No file?
+if ! grep -q tester /etc/passwd; then
+ echo "tester:x:101:101::/home/tester:/bin/bash" >> /etc/passwd
+ echo "tester:x:101:" >> /etc/group
+ install -o tester -d /home/tester
+fi
+chown tester:tester /var/lib/{packages,pacman}
@@ -216,6 +609,27 @@ cp -v -R docs/* $PKG_DEST/usr/share/doc/curl-&curl-version;
+
+
+
+
+
+ fakeroot
+ &fakeroot-version;
+ &fakeroot-url;
+
+
+ fakeroot-&fakeroot-version;
+
+
+
+./configure --prefix=/usr
+make
+make DESTDIR=$PKG_DEST install
+
+
+
+
@@ -230,20 +644,22 @@ cp -v -R docs/* $PKG_DEST/usr/share/doc/curl-&curl-version;
-./configure --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var
+mkdir build
+cd build
+meson --prefix=/usr \
+ -Dcrypto=openssl
-make
+ninja
-make DESTDIR=$PKG_DEST install
+DESTDIR=$PKG_DEST ninja install
sed -e 's/\([^!]\)strip/\1!strip/' \
-e 's/\([^!]\)zipman/\1!zipman/' \
+ -e 's/\([^!]\)libtool/\1!libtool/' \
-i /etc/makepkg.conf
cat >> /etc/makepkg.conf << EOF
BUILDDIR=/sources