fix: pakcage scripts and missing files

This commit is contained in:
ngn 2024-08-02 00:18:36 +03:00
parent c012ecb7bd
commit 499f26cbbd
8 changed files with 5612 additions and 9 deletions

File diff suppressed because it is too large Load Diff

View File

@ -4,8 +4,14 @@ DESC="GNU core utilities"
VERSION="9.4" VERSION="9.4"
# required files # required files
FILES=("https://ftp.gnu.org/gnu/coreutils/coreutils-${VERSION}.tar.xz") FILES=(
HASHES=("459e9546074db2834eefe5421f250025") "https://ftp.gnu.org/gnu/coreutils/coreutils-${VERSION}.tar.xz"
"coreutils-${VERSION}-i18n-1.patch"
)
HASHES=(
"459e9546074db2834eefe5421f250025"
"cca7dc8c73147444e77bc45d210229bb"
)
# install and build depends # install and build depends
DEPENDS=("acl" "attr" "glibc" "gmp" "libcap" "openssl") DEPENDS=("acl" "attr" "glibc" "gmp" "libcap" "openssl")
@ -26,8 +32,8 @@ PACKAGE(){
make && make DESTDIR="${ROOTDIR}" install make && make DESTDIR="${ROOTDIR}" install
mkdir -pv "${ROOTDIR}/usr/sbin" install -dm755 "${ROOTDIR}/usr/sbin"
mkdir -pv "${ROOTDIR}/usr/share/man/man8" install -dm755 "${ROOTDIR}/usr/share/man/man8"
mv -v "${ROOTDIR}/usr/share/man/man1/chroot.1" "${ROOTDIR}/usr/share/man/man8/chroot.8" mv -v "${ROOTDIR}/usr/share/man/man1/chroot.1" "${ROOTDIR}/usr/share/man/man8/chroot.8"
mv -v "${ROOTDIR}/usr/bin/chroot" "${ROOTDIR}/usr/sbin" mv -v "${ROOTDIR}/usr/bin/chroot" "${ROOTDIR}/usr/sbin"

10
src/dhcpcd/dhcpcd.service Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=Implementation of the DHCP client specified in RFC2131
Wants=network.target
Before=network.target
[Service]
ExecStart=/usr/sbin/dhcpcd -q -B
[Install]
WantedBy=multi-user.target

View File

@ -4,8 +4,14 @@ DESC="DHCP and DHCPv6 client"
VERSION="10.0.8" VERSION="10.0.8"
# required files # required files
FILES=("https://github.com/NetworkConfiguration/dhcpcd/releases/download/v${VERSION}/dhcpcd-${VERSION}.tar.xz") FILES=(
HASHES=("d8dddf9f971a8d9ff828f33d8fa9f6d9a892a4a1429d230e9efb2be97dd0e313") "https://github.com/NetworkConfiguration/dhcpcd/releases/download/v${VERSION}/dhcpcd-${VERSION}.tar.xz"
"dhcpcd.service"
)
HASHES=(
"d8dddf9f971a8d9ff828f33d8fa9f6d9a892a4a1429d230e9efb2be97dd0e313"
"8492a480e663b0e383df93e73324e7406aa84d169d6009fded8a729f563f67ba"
)
# install and build depends # install and build depends
DEPENDS=("glibc" "openssl" "bash" "systemd") DEPENDS=("glibc" "openssl" "bash" "systemd")
@ -23,13 +29,13 @@ PACKAGE(){
--privsepuser=dhcpcd --privsepuser=dhcpcd
make && make DESTDIR="${ROOTDIR}" install make && make DESTDIR="${ROOTDIR}" install
mkdir -pv "${ROOTDIR}/usr/lib/systemd/system" install -dm755 "${ROOTDIR}/usr/lib/systemd/system"
install -Dm644 "${ROOTDIR}/dhcpcd.service" "${ROOTDIR}/usr/lib/systemd/system" install -m644 "${ROOTDIR}/dhcpcd.service" "${ROOTDIR}/usr/lib/systemd/system"
cd .. && rm -r "${NAME}-${VERSION}" cd .. && rm -r "${NAME}-${VERSION}"
} }
install() { INSTALL() {
install -v -m700 -d /var/lib/dhcpcd install -v -m700 -d /var/lib/dhcpcd
groupadd -g 52 dhcpcd groupadd -g 52 dhcpcd
useradd -c 'dhcpcd PrivSep' \ useradd -c 'dhcpcd PrivSep' \

3
src/fakeroot/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/fakeroot/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 1.35
First version

View File

@ -0,0 +1 @@
/usr/lib/libfakeroot

42
src/fakeroot/pkg.sh Normal file
View File

@ -0,0 +1,42 @@
# general info
NAME="fakeroot"
DESC="Tool for simulating superuser privileges"
VERSION="1.35.1"
# required files
FILES=(
"https://deb.debian.org/debian/pool/main/f/fakeroot/fakeroot_${VERSION}.orig.tar.gz"
"fakeroot.conf"
)
HASHES=(
"6a0de53b2de05277d4e6d4a884eb0de7a8ad467b82c07a6f8f2f6a629e655fdc"
"564c4c4d369d005702d825d34edc5e5568cb1ab6ee1b19fa03d0d672fb8b3aee"
)
# install and build depends
DEPENDS=(
"glibc" "sed" "util-linux"
"bash"
)
BUILD=()
PACKAGE(){
tar xf "${NAME}_${VERSION}.orig.tar.gz"
cd "${NAME}-${VERSION}"
./configure --prefix=/usr \
--libdir=/usr/lib/libfakeroot \
--disable-static \
--with-ipc=sysv
make
make DESTDIR="${ROOTDIR}" install
install -dm755 "${ROOTDIR}/etc/ld.so.conf.d/"
install -m644 "${ROOTDIR}/fakeroot.conf" "${ROOTDIR}/etc/ld.so.conf.d/fakeroot.conf"
cd .. && rm -r "${NAME}-${VERSION}"
}
INSTALL(){
usr/bin/ldconfig -r .
}