Copy over all PKGBUILD files from git.it-kuny.ch

This commit is contained in:
Martin Valba 2022-09-17 23:13:35 +03:00
parent d71a296c63
commit 69e03e2526
1586 changed files with 156522 additions and 0 deletions

23
.gitignore vendored Normal file
View File

@ -0,0 +1,23 @@
# Ignore available pkg files
**/*.pkg.tar.gz
# Now ignore other things that are not needed to be included in .git
**/pkg
**/src
**/*xz*
**/*tar.gz
**/*tar.bz2
**/*.zip
**/*tgz
**/*tar.zst
**/*sign*
**/*sig*
**/*asc*
**/.git
**/*.dat.gz
# Ignore all of the extra folders in pkgbuild dir
*/*/*/*/
# Also ignore this
**/key

38
x86_64/cleanup.sh Executable file
View File

@ -0,0 +1,38 @@
#!/bin/bash
remove_leftovers() {
iam=$1
cd $@
set +e
echo " "
echo "[*]: Moving $iam pkgs to proper place"
mv */*pkg.t* ../../pkgs/$iam/ &> /dev/null
set -e
echo "[*]: Cleaning up $iam"
rm -rf */pkg/ */src/ */*pkg* */*xz* */*tar.gz */*tar.bz2 */*.zip */*/ */*tgz */*tar.zst */*sign* */*sig* */*asc*
cd ..
}
set -e
remove_leftovers core
remove_leftovers cross_tools
remove_leftovers extra
remove_leftovers extra32
remove_leftovers games
remove_leftovers layers
remove_leftovers pentest
remove_leftovers perl
remove_leftovers proprietary
remove_leftovers python
remove_leftovers server
remove_leftovers xfce
remove_leftovers kde
remove_leftovers gnome
echo " "
echo "[*]: Done"

25
x86_64/core/PKGBUILD Normal file
View File

@ -0,0 +1,25 @@
pkgname=
pkgver=
pkgrel=1
arch=('x86_64')
depends=()
makedepends=()
source=()
prepare() {
cd $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
}
package() {
cd $pkgname-$pkgver
}

View File

@ -0,0 +1,3 @@
polkit.addAdminRule(function(action, subject) {
return["unix-group:adm"];
});

View File

@ -0,0 +1,34 @@
pkgname=accountsservice
pkgver=22.08.8
pkgrel=1
arch=('x86_64')
depends=(glib2 polkit systemd shadow)
makedepends=(gtk-doc gobject-introspection meson docbook-xsl docbook-xml
xmlto vala python3-pygments)
source=(https://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz
40-adm.rules)
prepare() {
mkdir -p $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver/build
meson \
--prefix=/usr \
-D admin_group=adm \
-D gtk_doc=true \
-D docbook=true
ninja
}
package() {
cd $pkgname-$pkgver/build
DESTDIR=$pkgdir ninja install
mkdir -p $pkgdir/etc/polkit-1/rules.d
cp $srcdir/40-adm.rules $pkgdir/etc/polkit-1/rules.d/
}

25
x86_64/core/acl/PKGBUILD Normal file
View File

@ -0,0 +1,25 @@
pkgname=acl
pkgver=2.3.1
pkgrel=3
arch=('x86_64')
depends=(attr)
source=(https://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz)
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--bindir=/bin \
--libexecdir=/usr/lib
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
mkdir -vp $pkgdir/lib
mv -v $pkgdir/usr/lib/libacl.so.* $pkgdir/lib/
ln -sfv ../../lib/$(readlink $pkgdir/usr/lib/libacl.so) $pkgdir/usr/lib/libacl.so
}

23
x86_64/core/attr/PKGBUILD Normal file
View File

@ -0,0 +1,23 @@
pkgname=attr
pkgver=2.5.1
arch=('x86_64')
pkgrel=4
depends=(glibc)
makedepends=(grep gawk file)
source=(https://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz)
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--bindir=/bin \
--sysconfdir=/etc
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}

View File

@ -0,0 +1,37 @@
pkgname=base-chroot
pkgver=2022.3
pkgrel=1
pkgdesc="Base metapckage alike pkg to give user/dev needed CLI-System"
arch=('x86_64')
conflicts=(base-drunk)
source=(os-release neofetch)
depends=(
# Base packages
accountsservice ca-certificates diffutils file gnu-efi kmod libnl linux-pam pciutils procps-ng tar xz
acl dosfstools filesystem gzip less libseccomp lz4 pcre readline texinfo zlib
attr coreutils freetype2 iana-etc libarchive libtasn1 lzo pcre2 sed tzdata
cpio duktape fuse2 icu libcap ncurses shadow util-linux
bash curl e2fsprogs gawk inetutils libevent libx11 openssl pkgconf squashfs-tools wget
binutils dbus gettext intltool libffi libxcrypt p11-kit polkit syslinux which
bzip2 dhcpcd expat glib2 iproute2 libgudev libxml2 popt systemd wpa_supplicant
findutils nghttp2
# pkg manager
bottle)
build() {
mkdir -p $pkgname-$pkgver
cd $pkgname-$pkgver
}
package() {
cd $pkgname-$pkgver
# Make rootfs structure
mkdir -vp $pkgdir/etc/systemd/system/
mkdir -vp $pkgdir/usr/bin
# Copy over needed files
cp -rf ../../os-release $pkgdir/etc
cp -rf ../../neofetch $pkgdir/usr/bin && chmod +x $pkgdir/usr/bin/neofetch
}

11563
x86_64/core/base-chroot/neofetch Executable file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
NAME="Drunk"
VERSION="2022.3"
ID=drunk
ID_LIKE=drunk
PRETTY_NAME="Drunk 2022.3"
VERSION_ID="2022.3"
VERSION_CODENAME=sober

View File

@ -0,0 +1,39 @@
pkgname=base-drunk
pkgver=2022.3
pkgrel=1
pkgdesc="Base metapckage alike pkg to give user/dev needed bootable CLI-System"
arch=('x86_64')
source=(os-release neofetch)
depends=(
# Base packages
accountsservice ca-certificates diffutils file gnu-efi kmod libnl linux-pam pciutils procps-ng tar xz
acl dosfstools filesystem gzip less libseccomp lz4 pcre readline texinfo zlib
attr coreutils dracut freetype2 iana-etc libarchive libtasn1 lzo pcre2 sed tzdata
cpio duktape fuse2 icu libcap libtool ncurses shadow util-linux
bash curl e2fsprogs gawk inetutils libevent libx11 openssl pkgconf squashfs-tools wget
binutils dbus gettext intltool libffi libxcrypt p11-kit polkit syslinux which
bzip2 dhcpcd expat glib2 iproute2 libgudev libxml2 popt systemd wpa_supplicant
findutils nghttp2
# Needed to boot base-drunk
linux linux-firmware
# pkg manager
bottle)
build() {
mkdir -p $pkgname-$pkgver
cd $pkgname-$pkgver
}
package() {
cd $pkgname-$pkgver
# Make rootfs structure
mkdir -vp $pkgdir/etc/systemd/system/
mkdir -vp $pkgdir/usr/bin
# Copy over needed files
cp -rf ../../os-release $pkgdir/etc
cp -rf ../../neofetch $pkgdir/usr/bin && chmod +x $pkgdir/usr/bin/neofetch
}

11563
x86_64/core/base-drunk/neofetch Executable file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
NAME="Drunk"
VERSION="2022.3"
ID=drunk
ID_LIKE=drunk
PRETTY_NAME="Drunk 2022.3"
VERSION_ID="2022.3"
VERSION_CODENAME=sober

49
x86_64/core/bash/PKGBUILD Normal file
View File

@ -0,0 +1,49 @@
pkgname=bash
pkgver=5.1.16
pkgrel=1
arch=('x86_64')
depends=(readline glibc ncurses)
backup=(etc/bash.bash{rc,_logout}
etc/skel/.bash{rc,_profile,_logout})
source=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
dot.bash_logout
dot.bash_profile
dot.bashrc
system.bash_logout
system.bashrc)
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--with-curses \
--enable-readline \
--without-bash-malloc \
--with-installed-readline
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
cd ../
mkdir -p $pkgdir/bin/
mv $pkgdir/usr/bin/bash $pkgdir/bin
ln -s bash $pkgdir/bin/sh
# System
mkdir -p $pkgdir/etc
install -Dm644 system.bashrc $pkgdir/etc/bash.bashrc
install -Dm644 system.bash_logout $pkgdir/etc/bash.bash_logout
# User
install -dm755 $pkgdir/etc/skel/
install -m644 dot.bashrc $pkgdir/etc/skel/.bashrc
install -m644 dot.bash_profile $pkgdir/etc/skel/.bash_profile
install -m644 dot.bash_logout $pkgdir/etc/skel/.bash_logout
}

View File

@ -0,0 +1,3 @@
#
# ~/.bash_logout
#

View File

@ -0,0 +1,5 @@
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc

View File

@ -0,0 +1,22 @@
#
# /etc/bash.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
[[ $DISPLAY ]] && shopt -s checkwinsize
PS1='\[\e[1;32m\]\u [ \[\e[0m\]\w\[\e[1;32m\] ]$ \[\e[0m\]'
case ${TERM} in
xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
screen*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
esac
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion

View File

@ -0,0 +1,3 @@
#
# /etc/bash.bash_logout
#

View File

@ -0,0 +1,22 @@
#
# /etc/bash.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
[[ $DISPLAY ]] && shopt -s checkwinsize
PS1='\[\e[1;32m\]\u [ \[\e[0m\]\w\[\e[1;32m\] ]$ \[\e[0m\]'
case ${TERM} in
xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
screen*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
;;
esac
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion

View File

@ -0,0 +1,37 @@
pkgname=binutils
pkgver=2.38
pkgrel=1
arch=('x86_64')
depends=(glibc zlib readline elfutils flex)
makedepends=(bc git)
source=(https://ftp.gnu.org/gnu/binutils/$pkgname-$pkgver.tar.xz)
build() {
cd $pkgname-$pkgver
mkdir -vp build
cd build
../configure \
--prefix=/usr \
--enable-gold \
--enable-ld=default \
--enable-plugins \
--enable-shared \
--enable-gold \
--enable-targets=all \
--with-pic \
--disable-werror \
--enable-64-bit-bfd \
--with-system-zlib \
--enable-multilib \
--with-lib-path=/usr/lib:/lib:/usr/lib32
make tooldir=/usr
}
package() {
cd $pkgname-$pkgver/build
make tooldir=/usr DESTDIR=$pkgdir install -j1
}

View File

@ -0,0 +1,35 @@
pkgname=bottle
pkgver=2022.3
pkgrel=3
arch=('x86_64')
depends=(zstd bash glibc libarchive curl gpgme libassuan)
commitid=21769caf0e603d8d90ba2506bdf582361b7182f5
replaces=(pacman)
source=(git+https://git.it-kuny.ch/drunk/source-code/bottle#commit=$commitid)
build() {
cd $pkgname
meson \
--prefix=/usr \
-D doxygen=enabled \
-D scriptlet-shell=/bin/bash \
-D ldconfig=/usr/bin/ldconfig \
build
ninja -C build
}
package() {
cd $pkgname
mkdir -vp $pkgdir
export DESTDIR=$pkgdir/
ninja -C build install
# copy our own bottle.conf that has proper server list
cp -f ../../bottle.conf $pkgdir/etc/bottle.conf
mkdir -p $pkgdir/etc/bottle.d
touch $pkgdir/etc/bottle.d/mirrorlist
}

View File

@ -0,0 +1,135 @@
#
# /etc/bottle.conf
#
# See the bottle.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/bottle/
#CacheDir = /var/cache/bottle/pkg/
#LogFile = /var/log/bottle.log
#GPGDir = /etc/bottle.d/gnupg/
#HookDir = /etc/bottle.d/hooks/
HoldPkg = bottle glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options
#UseSyslog
Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
ParallelDownloads = 2
# PGP signature checking
#SigLevel = Optional
#LocalFileSigLevel = Optional
#RemoteFileSigLevel = Optional
#
# REPOSITORIES
# - can be defined here or included from another file
# - bottle will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
# An example of a disabled remote package repository with multiple servers
# available. To enable, uncomment the following lines. You can add preferred
# servers immediately after the header and they will be used before the
# default mirrors.
#
# Drunk - needed repos to work properly
#
[core]
Server = https://git.it-kuny.ch/drunk/repository/$arch/$repo/-/raw/main/packages/
[extra]
Server = https://git.it-kuny.ch/drunk/repository/$arch/$repo/-/raw/main/packages/
# Needed as glibc depends on it for mulitlib support
[extra32]
Server = https://git.it-kuny.ch/drunk/repository/$arch/$repo/-/raw/main/packages/
#
# Drunk - other repos that can be enabled/disabled manually ( though its not suggested )
#
# Includes cross compiling tools
[cross_tools]
Server = https://git.it-kuny.ch/drunk/repository/$arch/cross_tools/-/raw/main/packages/
# Open source games that are non-proprietary
[games]
Server = https://git.it-kuny.ch/drunk/repository/$arch/$repo/-/raw/main/packages/
# Example being wine and darling
[layers]
Server = https://git.it-kuny.ch/drunk/repository/$arch/$repo/-/raw/main/packages/
# Example steam
[proprietary]
Server = https://git.it-kuny.ch/drunk/repository/$arch/$repo/-/raw/main/packages/
# Example httpd also known as apache
[server]
Server = https://git.it-kuny.ch/drunk/repository/$arch/$repo/-/raw/main/packages/
# Example aircrack-ng
[pentest]
Server = https://git.it-kuny.ch/drunk/repository/$arch/$repo/-/raw/main/packages/
# For perl modules
[perl]
Server = https://git.it-kuny.ch/drunk/repository/$arch/$repo/-/raw/main/packages/
# For python modules
[python]
Server = https://git.it-kuny.ch/drunk/repository/$arch/$repo/-/raw/main/packages/
#
# Here are Drunk desktop env's that are separated to keep everything clean and shiny
# Also enabled by default as of thyere libs usage in extra repo
[gnome]
Server = https://git.it-kuny.ch/drunk/repository/$arch/$repo/-/raw/main/packages/
[kde]
Server = https://git.it-kuny.ch/drunk/repository/$arch/$repo/-/raw/main/packages/
[xfce]
Server = https://git.it-kuny.ch/drunk/repository/$arch/$repo/-/raw/main/packages/
# An example of a custom package repository. See the bottle manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

View File

@ -0,0 +1,36 @@
pkgname=bzip2
pkgver=1.0.8
pkgrel=2
arch=('x86_64')
depends=(glibc)
source=(https://www.sourceware.org/pub/bzip2/$pkgname-$pkgver.tar.gz)
build() {
cd $pkgname-$pkgver
sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
# use our optimization
[[ -n ${CFLAGS} ]] && sed -i "s|-O2|${CFLAGS}|g" Makefile
[[ -n ${CFLAGS} ]] && sed -i "s|-O2|${CFLAGS}|g" Makefile-libbz2_so
make -f Makefile-libbz2_so
make clean
make
}
package() {
cd $pkgname-$pkgver
make PREFIX=$pkgdir/usr install
mkdir -pv $pkgdir/{bin,lib,usr/lib}
cp -v bzip2-shared $pkgdir/bin/bzip2
cp -av libbz2.so* $pkgdir/lib
ln -sv ../../lib/libbz2.so.1.0 $pkgdir/usr/lib/libbz2.so
rm -v $pkgdir/usr/bin/{bunzip2,bzcat,bzip2}
ln -sv bzip2 $pkgdir/bin/bunzip2
ln -sv bzip2 $pkgdir/bin/bzcat
}

View File

@ -0,0 +1,11 @@
pkgname=ca-certificates
pkgver=20220719
pkgrel=1
arch=('x86_64')
source=(cacert.pem::https://curl.se/ca/cacert-2022-07-19.pem)
package() {
install -Dm644 $pkgdir/../../cacert.pem $pkgdir/etc/ssl/cert.pem
install -Dm644 $pkgdir/../../cacert.pem $pkgdir/etc/ssl/ca-bundle.pem
install -Dm644 $pkgdir/../../cacert.pem $pkgdir/etc/ssl/certs/ca-certificates.crt
}

File diff suppressed because it is too large Load Diff

16
x86_64/core/core-build.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
function build_core() {
shopt -s globstar
for d in ./*/ ; do
cd "$d"
echo " "
echo "[!]: Building ${d}"
$@
rm -rf src/
rm -rf pkg/
cd ..
done
}
build_core "makepkg --skipint"

View File

@ -0,0 +1,92 @@
From e8b56ebd536e82b15542a00c888109471936bfda Mon Sep 17 00:00:00 2001
From: =?utf8?q?P=C3=A1draig=20Brady?= <P@draigBrady.com>
Date: Fri, 24 Sep 2021 20:57:41 +0100
Subject: [PATCH] chmod: fix exit status when ignoring symlinks
* src/chmod.c: Reorder enum so CH_NOT_APPLIED
can be treated as a non error.
* tests/chmod/ignore-symlink.sh: A new test.
* tests/local.mk: Reference the new test.
Fixes https://bugs.gnu.org/50784
---
src/chmod.c | 4 ++--
tests/chmod/ignore-symlink.sh | 31 +++++++++++++++++++++++++++++++
tests/local.mk | 1 +
4 files changed, 40 insertions(+), 2 deletions(-)
create mode 100755 tests/chmod/ignore-symlink.sh
diff --git a/src/chmod.c b/src/chmod.c
index 37b04f5..57ac47f 100644
--- a/src/chmod.c
+++ b/src/chmod.c
@@ -44,8 +44,8 @@ struct change_status
enum
{
CH_NO_STAT,
- CH_NOT_APPLIED,
CH_FAILED,
+ CH_NOT_APPLIED,
CH_NO_CHANGE_REQUESTED,
CH_SUCCEEDED
}
@@ -322,7 +322,7 @@ process_file (FTS *fts, FTSENT *ent)
if ( ! recurse)
fts_set (fts, ent, FTS_SKIP);
- return CH_NO_CHANGE_REQUESTED <= ch.status;
+ return CH_NOT_APPLIED <= ch.status;
}
/* Recursively change the modes of the specified FILES (the last entry
diff --git a/tests/chmod/ignore-symlink.sh b/tests/chmod/ignore-symlink.sh
new file mode 100755
index 0000000..5ce3de8
--- /dev/null
+++ b/tests/chmod/ignore-symlink.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# Test for proper exit code of chmod on a processed symlink.
+
+# Copyright (C) 2021 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chmod
+
+mkdir dir || framework_failure_
+touch dir/f || framework_failure_
+ln -s f dir/l || framework_failure_
+
+# This operation ignores symlinks but should succeed.
+chmod u+w -R dir 2> out || fail=1
+
+compare /dev/null out || fail=1
+
+Exit $fail
diff --git a/tests/local.mk b/tests/local.mk
index 228d0e3..b5b893f 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -456,6 +456,7 @@ all_tests = \
tests/chmod/c-option.sh \
tests/chmod/equal-x.sh \
tests/chmod/equals.sh \
+ tests/chmod/ignore-symlink.sh \
tests/chmod/inaccessible.sh \
tests/chmod/octal.sh \
tests/chmod/setgid.sh \
--
1.9.1

View File

@ -0,0 +1,43 @@
pkgname=coreutils
pkgver=9.0
pkgrel=4
pkgdesc='The basic file, shell and text manipulation utilities of the GNU operating system'
arch=('x86_64')
license=('GPL3')
url='https://www.gnu.org/software/coreutils/'
depends=('glibc' 'acl' 'attr' 'gmp' 'libcap' 'openssl')
source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"
'01-fix-fs72253.patch')
prepare() {
cd $pkgname-$pkgver
# apply patch from the source array (should be a pacman feature)
local filename
for filename in "${source[@]}"; do
if [[ "$filename" =~ \.patch$ ]]; then
echo "Applying patch ${filename##*/}"
patch -Np1 -i "$srcdir/${filename##*/}"
fi
done
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--with-openssl \
--enable-no-install-program=groups,hostname,kill,uptime
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
# Compatability for hardcoded shit that needs cp, echo, cat, rm at /bin
mkdir -p $pkgdir/bin
cd $pkgdir/bin
cp -f ../usr/bin/* .
}

25
x86_64/core/cpio/PKGBUILD Normal file
View File

@ -0,0 +1,25 @@
pkgname=cpio
pkgver=2.13
pkgrel=2
arch=('x86_64')
depends=(glibc)
source=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
build() {
cd $pkgname-$pkgver
sed -i '/The name/,+2 d' src/global.c
./configure --prefix=/usr \
--enable-mt \
--bindir=/bin \
--libexecdir=/usr/lib \
--with-rmt=/usr/libexec/rmt
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
rm -r $pkgdir/usr/share/man/man8
}

53
x86_64/core/curl/PKGBUILD Normal file
View File

@ -0,0 +1,53 @@
pkgname=curl
pkgver=7.81.0
pkgrel=2
arch=('x86_64')
depends=(ca-certificates brotli libidn2 gnutls libpsl openssl zlib zstd)
source=(https://curl.haxx.se/download/$pkgname-$pkgver.tar.xz)
prepare() {
# We also want gnutls libs for steam ( possibly for other pkg's too )
cp -rf $pkgname-$pkgver $pkgname-$pkgver-gnutls
}
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr \
--enable-threaded-resolver \
--with-openssl \
--with-ca-bundle=/etc/ssl/cert.pem
make
cd $srcdir/$pkgname-$pkgver-gnutls
./configure \
--prefix=/usr \
--enable-threaded-resolver \
--without-ssl \
--with-gnutls='/usr' \
--with-ca-bundle=/etc/ssl/cert.pem
make -C lib
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
cd $srcdir/$pkgname-$pkgver-gnutls
tmpdir1=$srcdir/tmpdir1
make -C lib DESTDIR="${tmpdir1}" install
mv "${tmpdir1}"/usr/lib/libcurl{,-gnutls}.so.4.7.0
rm "${tmpdir1}"/usr/lib/libcurl.{a,so}*
for version in 3 4 4.0.0 4.1.0 4.2.0 4.3.0 4.4.0 4.5.0 4.6.0; do
ln -s libcurl-gnutls.so.4.7.0 "${tmpdir1}"/usr/lib/libcurl-gnutls.so.${version}
done
# Now move tmpdir1 libs to pkgdir
cp -rf $tmpdir1/* $pkgdir/
}

55
x86_64/core/dbus/PKGBUILD Normal file
View File

@ -0,0 +1,55 @@
pkgname=dbus
pkgver=1.12.20
pkgrel=5
arch=('x86_64')
depends=(libx11 systemd expat)
source=(https://dbus.freedesktop.org/releases/dbus/dbus-$pkgver.tar.gz
dbus-reload.hook
no-fatal-warnings.diff)
build() {
cd $pkgname-$pkgver
patch -Np1 -i ../no-fatal-warnings.diff
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=/usr/lib/dbus-1.0 \
runstatedir=/var/run \
--with-console-auth-dir=/var/run/console \
--with-dbus-user=dbus \
--with-system-pid-file=/var/run/dbus/pid \
--with-system-socket=/var/run/dbus/system_bus_socket \
--with-systemdsystemunitdir=/usr/lib/systemd/system \
--enable-systemd \
--enable-user-session \
--with-x
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
rm -r $pkgdir/{etc,var}
mkdir -p $pkgdir/lib
mv -v $pkgdir/usr/lib/libdbus-1.so.* $pkgdir/lib
ln -sfv ../../lib/$(readlink $pkgdir/usr/lib/libdbus-1.so) $pkgdir/usr/lib/libdbus-1.so
#chown -v root:messagebus $pkgdir/usr/libexec/dbus-daemon-launch-helper
#chmod -v 4750 $pkgdir/usr/libexec/dbus-daemon-launch-helper
echo 'u dbus 81 "System Message Bus"' |
install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/dbus.conf"
install -Dt $pkgdir/usr/share/libalpm -m644 $srcdir/*.hook
# if build logind support
#ln -sv $pkgdir/var/lib/dbus/machine-id $pkgdir/etc
rm -rf $pkgdir/var/run $pkgdir/run
}

View File

@ -0,0 +1,13 @@
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Operation = Remove
Target = etc/dbus-1/system.d/*.conf
Target = usr/share/dbus-1/system.d/*.conf
Target = usr/share/dbus-1/system-services/*.service
[Action]
Description = Reloading system bus configuration...
When = PostTransaction
Exec = /usr/share/libalpm/scripts/systemd-hook reload dbus

View File

@ -0,0 +1,13 @@
diff --git i/dbus/dbus-internals.c w/dbus/dbus-internals.c
index 267aef97..b1064e85 100644
--- i/dbus/dbus-internals.c
+++ w/dbus/dbus-internals.c
@@ -185,7 +185,7 @@ const char *_dbus_no_memory_message = "Not enough memory";
static dbus_bool_t warn_initted = FALSE;
static dbus_bool_t fatal_warnings = FALSE;
-static dbus_bool_t fatal_warnings_on_check_failed = TRUE;
+static dbus_bool_t fatal_warnings_on_check_failed = FALSE;
static void
init_warnings(void)

View File

@ -0,0 +1,36 @@
pkgname=dhcpcd
pkgver=9.4.1
pkgrel=3
arch=('x86_64')
depends=(glibc systemd libgudev libmd)
install=$pkgname.install
source=(https://roy.marples.name/downloads/dhcpcd/dhcpcd-$pkgver.tar.xz
dhcpcd.install
dhcpcd_.service
dhcpcd.service
dhcpcd.sysusers
dhcpcd.tmpfiles)
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--dbdir=/var/lib/dhcpcd \
--runstatedir=/run \
--privsepuser=dhcpcd
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
install -Dm644 "$srcdir/dhcpcd_.service" "$pkgdir/usr/lib/systemd/system/dhcpcd@.service"
install -Dm644 "$srcdir/dhcpcd.service" "$pkgdir/usr/lib/systemd/system/dhcpcd.service"
install -Dm644 "$srcdir/dhcpcd.sysusers" "$pkgdir/usr/lib/sysusers.d/dhcpcd.conf"
install -Dm644 "$srcdir/dhcpcd.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/dhcpcd.conf"
}

View File

@ -0,0 +1,12 @@
post_upgrade() {
if [ -d /var/lib/dhcpcd ]; then
chown root:root /var/lib/dhcpcd
chmod 0750 /var/lib/dhcpcd
fi
systemctl enable dhcpcd
}
post_install() {
post_upgrade
}

View File

@ -0,0 +1,13 @@
[Unit]
Description=dhcpcd on all interfaces
Wants=network.target
Before=network.target
[Service]
Type=forking
PIDFile=/run/dhcpcd/pid
ExecStart=/usr/sbin/dhcpcd -q -b
ExecStop=/usr/sbin/dhcpcd -x
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1 @@
u dhcpcd - "dhcpcd privilege separation" -

View File

@ -0,0 +1 @@
d /run/dhcpcd 0755 root root -

View File

@ -0,0 +1,15 @@
[Unit]
Description=dhcpcd on %I
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
Type=forking
PIDFile=/run/dhcpcd/%I.pid
ExecStart=/usr/sbin/dhcpcd -q -w %I
ExecStop=/usr/sbin/dhcpcd -x %I
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,19 @@
pkgname=diffutils
pkgver=3.8
pkgrel=1
arch=('x86_64')
depends=(glibc bash)
source=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz)
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}

View File

@ -0,0 +1,22 @@
pkgname=dosfstools
pkgver=4.2
pkgrel=1
arch=('x86_64')
depends=(glibc)
source=(https://github.com/dosfstools/dosfstools/releases/download/v$pkgver/dosfstools-$pkgver.tar.gz)
build() {
cd $pkgname-$pkgver
./configure --prefix=/ \
--enable-compat-symlinks \
--mandir=/usr/share/man
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}

View File

@ -0,0 +1,21 @@
pkgname=dracut
pkgver=056
pkgrel=1
arch=('x86_64')
depends=(cpio sed bash coreutils lvm2 filesystem findutils grep gzip kmod pkgconf
procps-ng binutils sed systemd util-linux xz)
source=(https://kernel.org/pub/linux/utils/boot/$pkgname/$pkgname-$pkgver.tar.gz)
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr \
--bindir=/bin \
--libexecdir=/usr/lib
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}

View File

@ -0,0 +1,29 @@
pkgname=duktape
pkgver=2.6.0
pkgrel=2
arch=('x86_64')
makedepends=(setconf)
depends=(glibc)
source=(https://duktape.org/duktape-$pkgver.tar.xz
duktape.pc)
prepare() {
cd $pkgname-$pkgver
mv Makefile.sharedlibrary Makefile
sed 's/-Wall -Wextra/$(CFLAGS)/g' -i Makefile
setconf Makefile INSTALL_PREFIX "$pkgdir/usr"
setconf "$srcdir/duktape.pc" Version "$pkgver"
}
build() {
CFLAGS="$CFLAGS -D DUK_USE_FASTINT -w" make -C $pkgname-$pkgver
}
package() {
install -d "$pkgdir/usr/include"
install -Dm644 duktape.pc "$pkgdir/usr/lib/pkgconfig/duktape.pc"
cd $pkgname-$pkgver
make install
}

View File

@ -0,0 +1,10 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: duktape
Description: Embeddable Javascript engine
Version: 2.6.0
Libs: -L${libdir} -lduktape
Cflags: -I${includedir}

View File

@ -0,0 +1,34 @@
pkgname=e2fsprogs
pkgver=1.46.5
pkgrel=1
arch=('x86_64')
depends=(glibc)
makedepends=(systemd util-linux fuse2)
source=(https://www.kernel.org/pub/linux/kernel/people/tytso/$pkgname/v$pkgver/$pkgname-$pkgver.tar.xz)
build() {
cd $pkgname-$pkgver
mkdir -vp build
cd build
../configure --prefix=/usr \
--bindir=/bin \
--with-root-prefix="" \
--enable-elf-shlibs \
--disable-libblkid \
--disable-libuuid \
--disable-uuidd \
--disable-fsck
make
}
package() {
cd $pkgname-$pkgver
cd build
make DESTDIR=$pkgdir install
make DESTDIR=$pkgdir install-libs
chmod -v u+w $pkgdir/usr/lib/{libcom_err,libe2p,libext2fs,libss}.a
}

View File

@ -0,0 +1,36 @@
pkgname=earlyoom
pkgver=1.7
pkgrel=1
arch=('x86_64')
depends=(glibc systembus-notify systemd)
makedepends=(gcc)
install=earlyoom.install
source=(https://github.com/rfjakob/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
prepare() {
cd $pkgname-$pkgver
sed "/systemctl|chcon/d" -ri Makefile
sed '/^DynamicUser=/a SupplementaryGroups=proc' -i earlyoom.service.in
sed 's;^EARLYOOM_ARGS="(.*)";EARLYOOM_ARGS="\1 -n --avoid '\''(^|/)(init|systemd|Xorg|sshd)$'\''";' -ri earlyoom.default
}
build() {
cd $pkgname-$pkgver
make \
PREFIX=/usr \
SYSTEMDUNITDIR=/usr/lib/systemd/system \
VERSION=$pkgver \
earlyoom
}
package() {
cd $pkgname-$pkgver
make \
DESTDIR=$pkgdir \
PREFIX=/usr \
SYSTEMDUNITDIR=/usr/lib/systemd/system \
install
}

View File

@ -0,0 +1,14 @@
post_upgrade() {
post_install
}
post_install() {
echo " "
echo "[ NOTICE ]: EarlyOOM is enabled by default on drunk!"
echo "[ NOTICE ]: To disable it use 'systemctl disable earlyoom'"
systemctl enable earlyoom
sleep 1
systemctl start earlyoom
echo " "
}

View File

@ -0,0 +1,23 @@
pkgname=erofs-utils
pkgver=1.4
pkgrel=2
arch=('x86_64')
depends=(glibc lz4)
makedepends=(util-linux)
source=(https://git.kernel.org/pub/scm/linux/kernel/git/xiang/${pkgname}.git/snapshot/$pkgname-$pkgver.tar.gz)
build() {
cd $pkgname-$pkgver
./autogen.sh
./configure --prefix=/usr \
--bindir=/bin \
--sysconfdir=/etc
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}

View File

@ -0,0 +1,24 @@
pkgname=expat
pkgver=2.4.4
pkgrel=1
arch=('x86_64')
depends=(glibc)
source=(https://sourceforge.net/projects/expat/files/expat/$pkgver/expat-$pkgver.tar.bz2)
build() {
cd $pkgname-$pkgver
# fix a problem with the regression tests
sed -i 's|usr/bin/env |bin/|' run.sh.in
./configure \
--prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}

21
x86_64/core/file/PKGBUILD Normal file
View File

@ -0,0 +1,21 @@
pkgname=file
pkgver=5.41
pkgrel=1
arch=('x86_64')
depends=(glibc zlib xz bzip2 libseccomp)
source=(ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz)
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}

View File

@ -0,0 +1,88 @@
pkgname=filesystem
pkgver=1
pkgrel=8
arch=('x86_64')
backup=(etc/dircolors.sh
etc/extrapaths.sh
etc/fstab
etc/hostname
etc/hosts
etc/i18n.sh
etc/inputrc
etc/profile
etc/profile.skel
etc/readline.sh
etc/resolv.conf
etc/shells
etc/umask.sh
etc/usb.conf
etc/passwd
etc/group
etc/issue)
source=(dircolors.sh
extrapaths.sh
fstab
hostname
hosts
i18n.sh
inputrc
profile
profile.skel
readline.sh
resolv.conf
shells
umask.sh
usb.conf
passwd
group
issue)
build() {
echo "Nothing here to do..."
}
package() {
mkdir -pv $pkgdir/{bin,boot,etc/{opt,sysconfig},home,lib/firmware,mnt,opt}
mkdir -pv $pkgdir/{media/{floppy,cdrom},sbin,srv,var}
install -dv -m 0750 $pkgdir/root
install -dv -m 1777 $pkgdir/tmp /var/tmp
mkdir -pv $pkgdir/usr/{,local/}{bin,include,lib,sbin,src}
ln -sf lib $pkgdir/usr/lib64
mkdir -pv $pkgdir/usr/{,local/}share/{color,dict,doc,info,locale,man}
mkdir -v $pkgdir/usr/{,local/}share/{misc,terminfo,zoneinfo}
mkdir -v $pkgdir/usr/libexec
mkdir -pv $pkgdir/usr/{,local/}share/man/man{1..8}
mkdir -v $pkgdir/usr/lib/pkgconfig
mkdir -v $pkgdir/var/{log,mail,spool}
ln -sv /run $pkgdir/var/run
ln -sv /run/lock $pkgdir/var/lock
mkdir -pv $pkgdir/var/{opt,cache,lib/{color,misc,locate},local}
install --directory --mode=0755 --owner=root --group=root $pkgdir/etc/profile.d
install --directory --mode=0755 --owner=root --group=root $pkgdir/etc/bash_completion.d
dircolors -p > $pkgdir/etc/dircolors
install -dm0755 -d $pkgdir/etc/modprobe.d
install -m0644 usb.conf $pkgdir/etc/modprobe.d
# profile.d
install -d $pkgdir/etc/profile.d
for i in *.sh; do
install -m0755 $i $pkgdir/etc/profile.d
done
# skel
install -d $pkgdir/etc/skel
for s in *.skel; do
install -m0644 $s $pkgdir/etc/skel/.${s/.skel/}
done
# /etc
install -d $pkgdir/etc
for p in profile shells resolv.conf inputrc fstab hostname hosts passwd group issue; do
install -m0644 $p $pkgdir/etc
done
ln -s /proc/self/mounts $pkgdir/etc/mtab
}

View File

@ -0,0 +1,34 @@
# Begin /etc/profile.d/bash_completion.sh
# Import bash completion scripts
# If the bash-completion package is installed, use its configuration instead
if [ -f /usr/share/bash-completion/bash_completion ]; then
# Check for interactive bash and that we haven't already been sourced.
if [ -n "${BASH_VERSION-}" -a -n "${PS1-}" -a -z "${BASH_COMPLETION_VERSINFO-}" ]; then
# Check for recent enough version of bash.
if [ ${BASH_VERSINFO[0]} -gt 4 ] || \
[ ${BASH_VERSINFO[0]} -eq 4 -a ${BASH_VERSINFO[1]} -ge 1 ]; then
[ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] && \
. "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion"
if shopt -q progcomp && [ -r /usr/share/bash-completion/bash_completion ]; then
# Source completion code.
. /usr/share/bash-completion/bash_completion
fi
fi
fi
else
# bash-completions are not installed, use only bash completion directory
if shopt -q progcomp; then
for script in /etc/bash_completion.d/* ; do
if [ -r $script ] ; then
. $script
fi
done
fi
fi
# End /etc/profile.d/bash_completion.sh

View File

@ -0,0 +1,11 @@
# Setup for /bin/ls and /bin/grep to support color, the alias is in /etc/bashrc.
if [ -f "/etc/dircolors" ] ; then
eval $(dircolors -b /etc/dircolors)
fi
if [ -f "$HOME/.dircolors" ] ; then
eval $(dircolors -b $HOME/.dircolors)
fi
alias ls='ls --color=auto'
alias grep='grep --color=auto'

View File

@ -0,0 +1,13 @@
if [ -d /usr/local/lib/pkgconfig ] ; then
pathappend /usr/local/lib/pkgconfig PKG_CONFIG_PATH
fi
if [ -d /usr/local/bin ]; then
pathprepend /usr/local/bin
fi
if [ -d /usr/local/sbin -a $EUID -eq 0 ]; then
pathprepend /usr/local/sbin
fi
# Set some defaults before other applications add to these paths.
pathappend /usr/share/man MANPATH
pathappend /usr/share/info INFOPATH

View File

@ -0,0 +1,12 @@
# Begin /etc/fstab
# file system mount-point type options dump fsck
# order
#/dev/<xxx> / <fff> defaults 1 1
#/dev/<yyy> swap swap pri=1 0 0
#/dev/<zzz> /boot/efi vfat defaults 0 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /run tmpfs defaults 0 0
# End /etc/fstab

View File

@ -0,0 +1,24 @@
root:x:0:
bin:x:1:daemon
sys:x:2:
kmem:x:3:
tape:x:4:
tty:x:5:
daemon:x:6:
floppy:x:7:
disk:x:8:
lp:x:9:
dialout:x:10:
audio:x:11:
video:x:12:
utmp:x:13:
usb:x:14:
cdrom:x:15:
adm:x:16:
messagebus:x:18:
input:x:24:
mail:x:34:
kvm:x:61:
wheel:x:97:
nogroup:x:99:
users:x:999:

View File

@ -0,0 +1 @@
drunk

View File

@ -0,0 +1,4 @@
# /etc/hosts
127.0.0.1 localhost
::1 localhost

View File

@ -0,0 +1,2 @@
# Set up i18n variables
#export LANG=<ll>_<CC>.<charmap><@modifiers>

View File

@ -0,0 +1,41 @@
# Begin /etc/inputrc
# Modified by Chris Lynn <roryo@roryo.dynup.net>
# Allow the command prompt to wrap to the next line
set horizontal-scroll-mode Off
# Enable 8bit input
set meta-flag On
set input-meta On
# Turns off 8th bit stripping
set convert-meta Off
# Keep the 8th bit for display
set output-meta On
# none, visible or audible
set bell-style none
# All of the following map the escape sequence of the value
# contained in the 1st argument to the readline specific functions
"\eOd": backward-word
"\eOc": forward-word
# for linux console
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
# for xterm
"\eOH": beginning-of-line
"\eOF": end-of-line
# for Konsole
"\e[H": beginning-of-line
"\e[F": end-of-line
# End /etc/inputrc

View File

@ -0,0 +1,2 @@
[ DRUNK ]: \r (\l)

View File

@ -0,0 +1,5 @@
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/dev/null:/bin/false
daemon:x:6:6:Daemon User:/dev/null:/bin/false
messagebus:x:18:18:D-Bus Message Daemon User:/var/run/dbus:/bin/false
nobody:x:99:99:Unprivileged User:/dev/null:/bin/false

View File

@ -0,0 +1,77 @@
# Begin /etc/profile
# Written for Beyond Linux From Scratch
# by James Robertson <jameswrobertson@earthlink.net>
# modifications by Dagmar d'Surreal <rivyqntzne@pbzpnfg.arg>
# System wide environment variables and startup programs.
# System wide aliases and functions should go in /etc/bashrc. Personal
# environment variables and startup programs should go into
# ~/.bash_profile. Personal aliases and functions should go into
# ~/.bashrc.
# Functions to help us manage paths. Second argument is the name of the
# path variable to be modified (default: PATH)
pathremove () {
local IFS=':'
local NEWPATH
local DIR
local PATHVARIABLE=${2:-PATH}
for DIR in ${!PATHVARIABLE} ; do
if [ "$DIR" != "$1" ] ; then
NEWPATH=${NEWPATH:+$NEWPATH:}$DIR
fi
done
export $PATHVARIABLE="$NEWPATH"
}
pathprepend () {
pathremove $1 $2
local PATHVARIABLE=${2:-PATH}
export $PATHVARIABLE="$1${!PATHVARIABLE:+:${!PATHVARIABLE}}"
}
pathappend () {
pathremove $1 $2
local PATHVARIABLE=${2:-PATH}
export $PATHVARIABLE="${!PATHVARIABLE:+${!PATHVARIABLE}:}$1"
}
export -f pathremove pathprepend pathappend
# Set the initial path
export PATH=/bin:/usr/bin:/usr/local/bin
if [ $EUID -eq 0 ] ; then
pathappend /sbin:/usr/sbin:/usr/local/sbin
unset HISTFILE
fi
# Setup some environment variables.
export HISTSIZE=1000
export HISTIGNORE="&:[bf]g:exit"
# Set some defaults for graphical systems
export XDG_DATA_DIRS=${XDG_DATA_DIRS:-/usr/share/}
export XDG_CONFIG_DIRS=${XDG_CONFIG_DIRS:-/etc/xdg/}
export XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/tmp/xdg-$USER}
# Setup a red prompt for root and a green one for users.
NORMAL="\[\e[0m\]"
RED="\[\e[1;31m\]"
GREEN="\[\e[1;32m\]"
if [[ $EUID == 0 ]] ; then
PS1="$RED\u [ $NORMAL\w$RED ]# $NORMAL"
else
PS1="$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL"
fi
for script in /etc/profile.d/*.sh ; do
if [ -r $script ] ; then
. $script
fi
done
unset script RED GREEN NORMAL
# End /etc/profile

View File

@ -0,0 +1,11 @@
# Begin ~/.profile
# Personal environment variables and startup programs.
if [ -d "$HOME/bin" ] ; then
pathprepend $HOME/bin
fi
# Set up user specific i18n variables
#export LANG=<ll>_<CC>.<charmap><@modifiers>
# End ~/.profile

View File

@ -0,0 +1,5 @@
# Setup the INPUTRC environment variable.
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ] ; then
INPUTRC=/etc/inputrc
fi
export INPUTRC

View File

@ -0,0 +1,4 @@
# /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4

View File

@ -0,0 +1,2 @@
/bin/sh
/bin/bash

View File

@ -0,0 +1,6 @@
# By default, the umask should be set.
if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ] ; then
umask 002
else
umask 022
fi

View File

@ -0,0 +1,6 @@
# Begin /etc/modprobe.d/usb.conf
install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i ohci_hcd ; true
install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true
# End /etc/modprobe.d/usb.conf

View File

@ -0,0 +1,24 @@
pkgname=findutils
pkgver=4.9.0
pkgrel=1
arch=('x86_64')
depends=(glibc bash)
source=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz)
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--localstatedir=/var/lib/locate
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
mkdir -pv $pkgdir/bin
mv -v $pkgdir/usr/bin/find $pkgdir/bin
sed -i 's|find:=${BINDIR}|find:=/bin|' $pkgdir/usr/bin/updatedb
}

View File

@ -0,0 +1,11 @@
[Trigger]
Type = Path
Operation = Install
Operation = Remove
Target = usr/share/fontconfig/conf.default/*
[Action]
Description = Updating fontconfig configuration...
When = PostTransaction
Exec = /usr/share/libalpm/scripts/40-fontconfig-config /etc/fonts/conf.d
NeedsTargets

View File

@ -0,0 +1,12 @@
#!/bin/bash
while read -r f; do
link="${1:?}/${f##*/}"
if [[ -e $f && ! -e $link ]]; then
ln -sT "/$f" "$link"
elif [[ ! -e $f && -L $link ]]; then
rm -f "$link"
fi
done
# vim:set sw=2 et:

View File

@ -0,0 +1,61 @@
pkgname=fontconfig
pkgver=2.14.0
pkgrel=2
arch=('x86_64')
depends=(glibc libpng expat zstd bzip2 readline freetype2)
source=(https://freedesktop.org/software/$pkgname/release/$pkgname-$pkgver.tar.gz
40-fontconfig-config.script
40-fontconfig-config.hook
fontconfig.hook)
backup=(etc/fonts/fonts.conf)
install=fontconfig.install
prepare() {
mkdir -p $pkgname-$pkgver/build
cd $pkgname-$pkgver
autoreconf -fvi
}
build() {
cd $pkgname-$pkgver/build
# NOTICE: Using other methods than configure will not produce .la files that some source code's need to be compiled ( VLC as a example that searches for libfontconfig.la )
#meson \
#--prefix=/usr \
#--sysconfdir=/etc \
#--localstatedir=/var \
#-D doc-txt=disabled \
#-D doc-pdf=disabled \
#-D doc-html=disabled \
#..
#ninja
./../configure \
--prefix=/usr
make
}
package() {
cd $pkgname-$pkgver/build
export FONTCONFIG_PATH=/etc/fonts
#DESTDIR=$pkgdir ninja install
make DESTDIR=$pkgdir install
cd $srcdir
# Handle conf.d using the hook to avoid overwriting the symlinks on upgrade
mkdir -p "$pkgdir/usr/share/fontconfig/conf.default"
for _f in "$pkgdir"/etc/fonts/conf.d/*.conf; do
ln -sfr "$pkgdir"/usr/share/fontconfig/conf.{avail,default}/"${_f##*/}"
rm -f "$_f"
done
install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
install -D 40-fontconfig-config.script \
"$pkgdir/usr/share/libalpm/scripts/40-fontconfig-config"
}

View File

@ -0,0 +1,14 @@
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Operation = Remove
Target = etc/fonts/conf.d/*
Target = usr/share/fonts/*
Target = usr/share/fontconfig/conf.avail/*
Target = usr/share/fontconfig/conf.default/*
[Action]
Description = Updating fontconfig cache...
When = PostTransaction
Exec = /usr/bin/fc-cache -s

View File

@ -0,0 +1,24 @@
post_upgrade() {
if (( $(vercmp $2 2:2.13.93-1) < 0 )); then
echo "Creating fontconfig configuration..."
find usr/share/fontconfig/conf.default -mindepth 1 |
/usr/share/libalpm/scripts/40-fontconfig-config /etc/fonts/conf.d
(( $(vercmp $2 0) > 0 )) && cat <<END
>>> If you have configured NoExtract to prevent symlinks in /etc/fonts/conf.d/
from being restored, these symlinks have been recreated one last time. You
can now delete the symlinks and remove the paths from NoExtract and they
will not be created again.
END
fi
# a full forced directory scan is required here
echo "Rebuilding fontconfig cache..."
/usr/bin/fc-cache -rs
}
post_install() {
post_upgrade $1 0
}

View File

@ -0,0 +1,26 @@
pkgname=freetype2
pkgver=2.11.1
pkgrel=1
arch=('x86_64')
depends=(zlib bzip2 bash libpng harfbuzz brotli)
source=(https://downloads.sourceforge.net/freetype/freetype-$pkgver.tar.xz)
build() {
cd freetype-$pkgver
sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg
sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \
-i include/freetype/config/ftoption.h
./configure \
--prefix=/usr \
--enable-freetype-config
make
}
package() {
cd freetype-$pkgver
make DESTDIR=$pkgdir install
}

View File

@ -0,0 +1,26 @@
pkgname=fuse2
pkgver=2.9.9
pkgrel=2
arch=('x86_64')
depends=(glibc)
source=(https://github.com/libfuse/libfuse/releases/download/fuse-$pkgver/fuse-$pkgver.tar.gz)
build() {
cd fuse-$pkgver
./configure \
--prefix=/usr \
INIT_D_PATH=/tmp/init.d
make
}
package() {
cd fuse-$pkgver
make DESTDIR=$pkgdir install
install -d $pkgdir/lib
mv -v $pkgdir/usr/lib/libfuse.so.* $pkgdir/lib
ln -sfv ../../lib/libfuse.so.2.9.9 $pkgdir/usr/lib/libfuse.so
rm -rf $pkgdir/{tmp,dev}
}

3
x86_64/core/fuse2/update Normal file
View File

@ -0,0 +1,3 @@
getver_fuse2() {
getver_github | grep ^2
}

21
x86_64/core/gawk/PKGBUILD Normal file
View File

@ -0,0 +1,21 @@
pkgname=gawk
pkgver=5.1.1
pkgrel=1
arch=('x86_64')
depends=(bash glibc mpfr)
source=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz)
build() {
cd $pkgname-$pkgver
# ensure some unneeded files are not installed
sed -i 's/extras//' Makefile.in
./configure --prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}

72
x86_64/core/gcc/PKGBUILD Normal file
View File

@ -0,0 +1,72 @@
pkgname=gcc
pkgver=12.1.0
pkgrel=2
arch=('x86_64')
source=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz)
options=(!emptydirs !lto !strip)
depends=(binutils mpfr mpc glibc libxcrypt zstd flex)
prepare() {
cd $pkgname-$pkgver
# link isl for in-tree build
ln -sf ../isl-${_islver} isl
# Do not run fixincludes
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
sed -e '/m64=/s/lib64/lib/' \
-i.orig gcc/config/i386/t-linux64
mkdir -pv build
cd build
SED=sed \
../configure \
--prefix=/usr \
--enable-languages=c,c++,fortran,go,lto,objc,obj-c++,d \
--with-system-zlib \
--enable-multilib \
--enable-lto \
--enable-default-pie \
--enable-plugin \
--enable-shared \
--enable-threads=posix \
--disable-werror \
--with-arch_32=i686
}
build() {
cd $pkgname-$pkgver/build
#make -j4
}
package() {
cd $pkgname-$pkgver
cd build
# Lets use install-strip so we get pre-stripped binaries
make -j1 DESTDIR=$pkgdir install-strip
rm -rf $pkgdir/usr/lib/gcc/$(gcc -dumpmachine)/$pkgver/include-fixed/bits/
chown -v -R root:root \
$pkgdir/usr/lib/gcc/*linux-gnu/$pkgver/include{,-fixed}
mkdir -p $pkgdir/lib
ln -sfv ../usr/bin/cpp $pkgdir/lib
ln -sfv gcc $pkgdir/usr/bin/cc
install -v -dm755 $pkgdir/usr/lib/bfd-plugins
ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/$pkgver/liblto_plugin.so \
$pkgdir/usr/lib/bfd-plugins/
mkdir -pv $pkgdir/usr/share/gdb/auto-load/usr/lib
mv -v $pkgdir/usr/lib/*gdb.py $pkgdir/usr/share/gdb/auto-load/usr/lib
# Move / Rename some things ( mainly as of conflicts with other pkg's )
mv $pkgdir/usr/bin/go $pkgdir/usr/bin/gcc-go
mv $pkgdir/usr/bin/gofmt $pkgdir/usr/bin/gcc-gofmt
}

View File

@ -0,0 +1,25 @@
pkgname=gettext
pkgver=0.21
pkgrel=2
arch=('x86_64')
depends=(bash glib2 glibc)
source=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz)
build() {
cd $pkgname-$pkgver
# suppress two invocations of test-lock which on some machines can loop forever
sed -i '/^TESTS =/d' gettext-runtime/tests/Makefile.in
sed -i 's/test-lock..EXEEXT.//' gettext-tools/gnulib-tests/Makefile.in
./configure \
--prefix=/usr
}
package() {
cd $pkgname-$pkgver
make || make -j1
make -j1 DESTDIR=$pkgdir install
chmod -v 0755 $pkgdir/usr/lib/preloadable_libintl.so
}

View File

@ -0,0 +1,47 @@
pkgname=glib2
pkgver=2.72.2
pkgrel=1
arch=('x86_64')
depends=('libffi' 'pcre' 'util-linux' 'zlib' 'elfutils' 'libxslt' 'libxml2')
makedepends=('gtk-doc' 'python3-pip' 'dbus' 'gettext' 'git' 'meson' 'docbook-xml' 'docbook-xsl')
source=(git+https://gitlab.gnome.org/GNOME/glib.git#tag=$pkgver
noisy-glib-compile-schemas.diff
glib-compile-schemas.hook
gio-querymodules.{hook,script})
prepare() {
cd glib
git apply -3 ../noisy-glib-compile-schemas.diff
pip3 install pygments
}
build() {
CFLAGS+=" -DG_DISABLE_CAST_CHECKS"
meson glib build \
-D glib_debug=disabled \
-D selinux=disabled \
-D man=false \
-D gtk_doc=true \
--prefix=/usr \
--libdir=/usr/lib
meson compile -C build
}
package() {
meson install -C build --destdir $pkgdir
python3 -m compileall -d /usr/share/glib-2.0/codegen \
$pkgdir/usr/share/glib-2.0/codegen
python3 -O -m compileall -d /usr/share/glib-2.0/codegen \
$pkgdir/usr/share/glib-2.0/codegen
mkdir -p $pkgdir/usr/lib/pkgconfig
cp -f build/meson-private/*.pc $pkgdir/usr/lib/pkgconfig
install -Dt $pkgdir/usr/share/libalpm/hooks/ -m644 *.hook
install -D gio-querymodules.script $pkgdir/usr/share/libalpm/scripts/gio-querymodules
}

View File

@ -0,0 +1,45 @@
pkgname=glib2
pkgver=2.70.2
pkgrel=5
arch=('x86_64')
depends=('glibc' 'libxslt')
makedepends=('gtk-doc')
source=(git+https://gitlab.gnome.org/GNOME/glib.git#tag=$pkgver
noisy-glib-compile-schemas.diff
glib-compile-schemas.hook
gio-querymodules.{hook,script})
prepare() {
cd glib
git apply -3 ../noisy-glib-compile-schemas.diff
}
build() {
CFLAGS+=" -DG_DISABLE_CAST_CHECKS"
meson glib build \
-D glib_debug=disabled \
-D selinux=disabled \
-D man=false \
-D gtk_doc=true \
--prefix=/usr \
--libdir=/usr/lib
meson compile -C build
}
package() {
meson install -C build --destdir $pkgdir
python3 -m compileall -d /usr/share/glib-2.0/codegen \
$pkgdir/usr/share/glib-2.0/codegen
python3 -O -m compileall -d /usr/share/glib-2.0/codegen \
$pkgdir/usr/share/glib-2.0/codegen
mkdir -p $pkgdir/usr/lib/pkgconfig
cp -f build/meson-private/*.pc $pkgdir/usr/lib/pkgconfig
install -Dt $pkgdir/usr/share/libalpm/hooks/ -m644 *.hook
install -D gio-querymodules.script $pkgdir/usr/share/libalpm/scripts/gio-querymodules
}

View File

@ -0,0 +1,12 @@
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/lib/gio/modules/
[Action]
Description = Updating GIO module cache...
When = PostTransaction
Exec = /usr/share/libalpm/scripts/gio-querymodules
NeedsTargets

View File

@ -0,0 +1,7 @@
#!/bin/bash
while read -r d; do
[[ -d $d ]] || continue
gio-querymodules "$d"
rmdir --ignore-fail-on-non-empty "$d"
done

View File

@ -0,0 +1,12 @@
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/share/glib-2.0/schemas/*.gschema.xml
Target = usr/share/glib-2.0/schemas/*.gschema.override
[Action]
Description = Compiling GSettings XML schema files...
When = PostTransaction
Exec = /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas

View File

@ -0,0 +1,24 @@
diff --git i/gio/glib-compile-schemas.c w/gio/glib-compile-schemas.c
index cfea042f8..1b2afe457 100644
--- i/gio/glib-compile-schemas.c
+++ w/gio/glib-compile-schemas.c
@@ -1232,19 +1232,6 @@ parse_state_start_schema (ParseState *state,
return;
}
- if (path && (g_str_has_prefix (path, "/apps/") ||
- g_str_has_prefix (path, "/desktop/") ||
- g_str_has_prefix (path, "/system/")))
- {
- gchar *message = NULL;
- message = g_strdup_printf (_("Warning: Schema “%s” has path “%s”. "
- "Paths starting with "
- "“/apps/”, “/desktop/” or “/system/” are deprecated."),
- id, path);
- g_printerr ("%s\n", message);
- g_free (message);
- }
-
state->schema_state = schema_state_new (path, gettext_domain,
extends, extends_name, list_of);

155
x86_64/core/glibc/PKGBUILD Normal file
View File

@ -0,0 +1,155 @@
pkgname=glibc
pkgver=2.35
pkgrel=4
arch=('x86_64')
depends=(libxcrypt filesystem lib32-libxcrypt)
makedepends=(python3 bison m4)
options=(!strip emptydirs staticlibs)
backup=(etc/gai.conf
etc/locale.gen
etc/nscd.conf)
install=glibc.install
source=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz)
build() {
cd $pkgname-$pkgver
mkdir -pv build
cd build
../configure \
--prefix=/usr \
--disable-werror \
--enable-add-ons \
--enable-bind-now \
--enable-cet \
--enable-lock-elision \
--enable-stack-protector=strong \
--enable-stackguard-randomization \
--enable-kernel=3.2 \
--enable-stack-protector=strong \
--with-headers=/usr/include \
--disable-crypt \
--enable-multi-arch \
libc_cv_slibdir=/lib
make
mkdir -p ../build32
cd ../build32
CC="gcc -m32" \
CXX="g++ -m32" \
../configure \
--prefix=/usr \
--disable-werror \
--enable-kernel=3.2 \
--enable-multi-arch \
--enable-stack-protector=strong \
--libdir=/usr/lib32 \
--disable-crypt \
--enable-add-ons \
--libexecdir=/usr/lib32 \
libc_cv_slibdir=/usr/lib32 \
i686-pc-linux-gnu
make
}
package() {
# 64bit install
cd $pkgname-$pkgver
cd build
mkdir -p $pkgdir/lib64
ln -sfv ../lib/ld-linux-x86-64.so.2 $pkgdir/lib64/ld-linux-x86-64.so.2
ln -sfv ../lib/ld-linux-x86-64.so.2 $pkgdir/lib64/ld-lsb-x86-64.so.3
mkdir -p $pkgdir/etc
touch $pkgdir/etc/ld.so.conf
make install_root=$pkgdir install
cp -v ../nscd/nscd.conf $pkgdir/etc/nscd.conf
mkdir -pv $pkgdir/var/cache/nscd
mkdir -pv $pkgdir/usr/lib/locale
make install_root=$pkgdir localedata/install-locales -j2
# 32bit
cd ../build32
rm -rf DESTDIR
mkdir -p DESTDIR/usr/lib32/
sleep 10
make install_root=$('pwd')/DESTDIR install
install -vdm755 $pkgdir/usr/lib32
install -vdm755 $pkgdir/include/gnu
install -vdm755 $pkgdir/etc/ld.so.conf.d
find DESTDIR/usr/include -type f -not -name '*-32.h' -delete
cp -rf DESTDIR/usr/include/* $pkgdir/usr/include/
mkdir -vp $pkgdir/usr/lib32/
cp -Rv DESTDIR/usr/lib32/* $pkgdir/usr/lib32/
# Provided by libxcrypt; keep the old shared library for backwards compatibility
rm -f "$pkgdir"/usr/include/crypt.h "$pkgdir"/usr/{lib,lib32}/libcrypt.{a,so}
mkdir -vp $pkgdir/etc/ld.so.conf.d
mkdir -vp $pkgdir/lib/
ln -sv ../usr/lib32/ld-linux.so.2 $pkgdir/lib/ld-linux.so.2
ln -sv ../usr/lib32/ld-linux.so.2 $pkgdir/lib/ld-lsb.so.3
ln -sv ../lib/locale $pkgdir/usr/lib32/locale
mkdir -p $pkgdir/etc/ld.so.conf.d
echo "/usr/lib32" > "$pkgdir/etc/ld.so.conf.d/lib32-glibc.conf"
cat > $pkgdir/etc/nsswitch.conf << "EOF"
# Begin /etc/nsswitch.conf
passwd: files
group: files
shadow: files
hosts: files dns
networks: files
protocols: files
services: files
ethers: files
rpc: files
# End /etc/nsswitch.conf
EOF
cat > $pkgdir/etc/ld.so.conf << "EOF"
# Begin /etc/ld.so.conf
/usr/local/lib
/opt/lib
EOF
cat >> $pkgdir/etc/ld.so.conf << "EOF"
# Add an include directory
include /etc/ld.so.conf.d/*.conf
EOF
mkdir -pv $pkgdir/etc/ld.so.conf.d
# Stripping
if check_option 'debug' n; then
find "$pkgdir"/usr/bin -type f -executable -exec strip $STRIP_BINARIES {} + 2> /dev/null || true
find "$pkgdir"/usr/lib -name '*.a' -type f -exec strip $STRIP_STATIC {} + 2> /dev/null || true
# Do not strip these for gdb and valgrind functionality, but strip the rest
find "$pkgdir"/usr/lib \
-not -name 'ld-*.so' \
-not -name 'libc-*.so' \
-not -name 'libpthread-*.so' \
-not -name 'libthread_db-*.so' \
-name '*-*.so' -type f -exec strip $STRIP_SHARED {} + 2> /dev/null || true
fi
}

View File

@ -0,0 +1,72 @@
Submitted By: Armin K. <krejzi at email dot com>
Date: 2013-02-11
Initial Package Version: 2.17
Upstream Status: Not Applicable
Origin: Self
Description: This patch removes references to /var/db directory which is not part
of FHS and replaces them with more suitable directories in /var
hierarchy - /var/cache/nscd for nscd and /var/lib/nss_db for nss_db.
--- a/Makeconfig 2012-12-25 04:02:13.000000000 +0100
+++ b/Makeconfig 2013-02-11 01:32:32.500667439 +0100
@@ -250,7 +250,7 @@
# Directory for the database files and Makefile for nss_db.
ifndef vardbdir
-vardbdir = $(localstatedir)/db
+vardbdir = $(localstatedir)/lib/nss_db
endif
inst_vardbdir = $(install_root)$(vardbdir)
--- a/nscd/nscd.h 2012-12-25 04:02:13.000000000 +0100
+++ b/nscd/nscd.h 2013-02-11 01:32:32.500667439 +0100
@@ -112,11 +112,11 @@
/* Paths of the file for the persistent storage. */
-#define _PATH_NSCD_PASSWD_DB "/var/db/nscd/passwd"
-#define _PATH_NSCD_GROUP_DB "/var/db/nscd/group"
-#define _PATH_NSCD_HOSTS_DB "/var/db/nscd/hosts"
-#define _PATH_NSCD_SERVICES_DB "/var/db/nscd/services"
-#define _PATH_NSCD_NETGROUP_DB "/var/db/nscd/netgroup"
+#define _PATH_NSCD_PASSWD_DB "/var/cache/nscd/passwd"
+#define _PATH_NSCD_GROUP_DB "/var/cache/nscd/group"
+#define _PATH_NSCD_HOSTS_DB "/var/cache/nscd/hosts"
+#define _PATH_NSCD_SERVICES_DB "/var/cache/nscd/services"
+#define _PATH_NSCD_NETGROUP_DB "/var/cache/nscd/netgroup"
/* Path used when not using persistent storage. */
#define _PATH_NSCD_XYZ_DB_TMP "/var/run/nscd/dbXXXXXX"
--- a/nss/db-Makefile 2012-12-25 04:02:13.000000000 +0100
+++ b/nss/db-Makefile 2013-02-11 01:32:32.500667439 +0100
@@ -22,7 +22,7 @@
/etc/rpc /etc/services /etc/shadow /etc/gshadow \
/etc/netgroup)
-VAR_DB = /var/db
+VAR_DB = /var/lib/nss_db
AWK = awk
MAKEDB = makedb --quiet
--- a/sysdeps/generic/paths.h 2012-12-25 04:02:13.000000000 +0100
+++ b/sysdeps/generic/paths.h 2013-02-11 01:32:32.500667439 +0100
@@ -68,7 +68,7 @@
/* Provide trailing slash, since mostly used for building pathnames. */
#define _PATH_DEV "/dev/"
#define _PATH_TMP "/tmp/"
-#define _PATH_VARDB "/var/db/"
+#define _PATH_VARDB "/var/lib/nss_db/"
#define _PATH_VARRUN "/var/run/"
#define _PATH_VARTMP "/var/tmp/"
--- a/sysdeps/unix/sysv/linux/paths.h 2012-12-25 04:02:13.000000000 +0100
+++ b/sysdeps/unix/sysv/linux/paths.h 2013-02-11 01:32:32.504000831 +0100
@@ -68,7 +68,7 @@
/* Provide trailing slash, since mostly used for building pathnames. */
#define _PATH_DEV "/dev/"
#define _PATH_TMP "/tmp/"
-#define _PATH_VARDB "/var/db/"
+#define _PATH_VARDB "/var/lib/nss_db/"
#define _PATH_VARRUN "/var/run/"
#define _PATH_VARTMP "/var/tmp/"

View File

@ -0,0 +1,3 @@
post_upgrade() {
ldconfig -r .
}

View File

@ -0,0 +1,39 @@
pkgname=gnu-efi
pkgver=3.0.14
pkgrel=1
pkgdesc="Develop EFI applications using the GNU toolchain and the EFI development environment"
arch=(x86_64)
url="https://sourceforge.net/projects/gnu-efi/"
license=(BSD)
source=("https://download.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
"${pkgname}-3.0.12-ldflags.patch")
prepare() {
cd "$pkgname-$pkgver"
# -Werror, not even once
sed -e 's/-Werror//g' -i Make.defaults
# insert LDFLFAGS into custom linker for apps
patch -Np1 -i "../${pkgname}-3.0.12-ldflags.patch"
}
build() {
cd "$pkgname-$pkgver"
# fat-lto-objects is required for non-mangled (static) object files
CFLAGS+=" -ffat-lto-objects"
make
make -C lib
make -C gnuefi
make -C inc
# unset LDFLAGS for custom linker used in apps, as we have patched our
# LDFLAGS in manually in prepare()
LDFLAGS=""
make -C apps
}
package() {
cd "$pkgname-$pkgver"
make INSTALLROOT="$pkgdir/" PREFIX='/usr' install
install -vDm 644 apps/*.efi -t "${pkgdir}/usr/share/${pkgname}/apps/$CARCH"
install -vDm 644 README.efilib -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -vDm 644 {ChangeLog,README.{gnuefi,git,elilo}} -t "${pkgdir}/usr/share/doc/${pkgname}"
}

View File

@ -0,0 +1,12 @@
diff -ruN a/apps/Makefile b/apps/Makefile
--- a/apps/Makefile 2020-05-11 17:05:20.000000000 +0200
+++ b/apps/Makefile 2020-05-26 00:32:48.470418674 +0200
@@ -52,7 +52,7 @@
LDSCRIPT = $(TOPDIR)/gnuefi/elf_$(ARCH)_fbsd_efi.lds
endif
-LDFLAGS += -shared -Bsymbolic -L../lib -L../gnuefi $(CRTOBJS)
+LDFLAGS += -O1 --sort-common --as-needed -z relro -z now -shared -Bsymbolic -L../lib -L../gnuefi $(CRTOBJS)
LOADLIBES += -lefi -lgnuefi
LOADLIBES += $(LIBGCC)

20
x86_64/core/gzip/PKGBUILD Normal file
View File

@ -0,0 +1,20 @@
pkgname=gzip
pkgver=1.11
pkgrel=1
arch=('x86_64')
depends=(glibc bash)
source=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz)
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
mkdir -p $pkgdir/bin
mv -v $pkgdir/usr/bin/gzip $pkgdir/bin
}

View File

@ -0,0 +1,15 @@
pkgname=iana-etc
pkgver=20210222
pkgrel=1
arch=('x86_64')
source=(services protocols)
build() {
echo "build"
}
package() {
install -d -m 755 $pkgdir/etc
install -m 644 services $pkgdir/etc
install -m 644 protocols $pkgdir/etc
}

View File

@ -0,0 +1,137 @@
# /etc/protocols, created 2021-02-22T22:50:58+0800
# Source: https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xml
hopopt 0 HOPOPT
icmp 1 ICMP
igmp 2 IGMP
ggp 3 GGP
ipv4 4 IPv4
st 5 ST
tcp 6 TCP
cbt 7 CBT
egp 8 EGP
igp 9 IGP
bbn-rcc-mon 10 BBN-RCC-MON
nvp-ii 11 NVP-II
pup 12 PUP
emcon 14 EMCON
xnet 15 XNET
chaos 16 CHAOS
udp 17 UDP
mux 18 MUX
dcn-meas 19 DCN-MEAS
hmp 20 HMP
prm 21 PRM
xns-idp 22 XNS-IDP
trunk-1 23 TRUNK-1
trunk-2 24 TRUNK-2
leaf-1 25 LEAF-1
leaf-2 26 LEAF-2
rdp 27 RDP
irtp 28 IRTP
iso-tp4 29 ISO-TP4
netblt 30 NETBLT
mfe-nsp 31 MFE-NSP
merit-inp 32 MERIT-INP
dccp 33 DCCP
3pc 34 3PC
idpr 35 IDPR
xtp 36 XTP
ddp 37 DDP
idpr-cmtp 38 IDPR-CMTP
tp++ 39 TP++
il 40 IL
ipv6 41 IPv6
sdrp 42 SDRP
ipv6-route 43 IPv6-Route
ipv6-frag 44 IPv6-Frag
idrp 45 IDRP
rsvp 46 RSVP
gre 47 GRE
dsr 48 DSR
bna 49 BNA
esp 50 ESP
ah 51 AH
i-nlsp 52 I-NLSP
narp 54 NARP
mobile 55 MOBILE
tlsp 56 TLSP
skip 57 SKIP
ipv6-icmp 58 IPv6-ICMP
ipv6-nonxt 59 IPv6-NoNxt
ipv6-opts 60 IPv6-Opts
cftp 62 CFTP
sat-expak 64 SAT-EXPAK
kryptolan 65 KRYPTOLAN
rvd 66 RVD
ippc 67 IPPC
sat-mon 69 SAT-MON
visa 70 VISA
ipcv 71 IPCV
cpnx 72 CPNX
cphb 73 CPHB
wsn 74 WSN
pvp 75 PVP
br-sat-mon 76 BR-SAT-MON
sun-nd 77 SUN-ND
wb-mon 78 WB-MON
wb-expak 79 WB-EXPAK
iso-ip 80 ISO-IP
vmtp 81 VMTP
secure-vmtp 82 SECURE-VMTP
vines 83 VINES
ttp 84 TTP
iptm 84 IPTM
nsfnet-igp 85 NSFNET-IGP
dgp 86 DGP
tcf 87 TCF
eigrp 88 EIGRP
ospfigp 89 OSPFIGP
sprite-rpc 90 Sprite-RPC
larp 91 LARP
mtp 92 MTP
ax.25 93 AX.25
ipip 94 IPIP
scc-sp 96 SCC-SP
etherip 97 ETHERIP
encap 98 ENCAP
gmtp 100 GMTP
ifmp 101 IFMP
pnni 102 PNNI
pim 103 PIM
aris 104 ARIS
scps 105 SCPS
qnx 106 QNX
a/n 107 A/N
ipcomp 108 IPComp
snp 109 SNP
compaq-peer 110 Compaq-Peer
ipx-in-ip 111 IPX-in-IP
vrrp 112 VRRP
pgm 113 PGM
l2tp 115 L2TP
ddx 116 DDX
iatp 117 IATP
stp 118 STP
srp 119 SRP
uti 120 UTI
smp 121 SMP
ptp 123 PTP
fire 125 FIRE
crtp 126 CRTP
crudp 127 CRUDP
sscopmce 128 SSCOPMCE
iplt 129 IPLT
sps 130 SPS
pipe 131 PIPE
sctp 132 SCTP
fc 133 FC
rsvp-e2e-ignore 134 RSVP-E2E-IGNORE
udplite 136 UDPLite
mpls-in-ip 137 MPLS-in-IP
manet 138 manet
hip 139 HIP
shim6 140 Shim6
wesp 141 WESP
rohc 142 ROHC
ethernet 143 Ethernet
reserved 255 Reserved

11447
x86_64/core/iana-etc/services Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,66 @@
#!/bin/sh -
#@ Update protocols and services from IANA.
#@ Taken from ArchLinux script written by Gaetan Bisson. Adjusted for CRUX.
awk=awk
curl=curl
url_pn='https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xml'
url_snpn="https://www.iana.org/assignments/service-names-port-numbers/\
service-names-port-numbers.xml"
download() {
datetime=`date +'%FT%T%z'`
echo 'Downloading protocols'
${curl} -o protocols.xml ${url_pn}
[ ${?} -eq 0 ] || exit 20
echo 'Downloading services'
${curl} -o services.xml ${url_snpn}
[ ${?} -eq 0 ] || exit 21
}
process() {
echo 'Processing protocols'
${awk} -F "[<>]" -v URL="${url_pn}" -v DT="${datetime}" '
BEGIN{
print "# /etc/protocols, created " DT
print "# Source: " URL
}
/<record/ {v = n = ""}
/<value/ {v = $3}
/<name/ && $3!~/ / {n = $3}
/<\/record/ && n && v != ""{
printf "%-12s %3i %s\n", tolower(n), v, n
}
' < protocols.xml > protocols.new
[ ${?} -eq 0 ] || exit 30
echo 'Processing services'
${awk} -F "[<>]" -v URL="${url_snpn}" -v DT="${datetime}" '
BEGIN{
print "# /etc/services, created " DT
print "# Source: " URL
}
/<record/ {n = u = p = c = ""}
/<name/ && !/\(/ {n = $3}
/<number/ {u = $3}
/<protocol/ {p = $3}
/Unassigned/ || /Reserved/ || /historic/ {c = 1}
/<\/record/ && n && u && p && !c{
printf "%-15s %5i/%s\n", n, u, p
}
' < services.xml > services.new
[ ${?} -eq 0 ] || exit 31
}
update() {
mv protocols.new protocols
[ ${?} -eq 0 ] || exit 40
mv services.new services
[ ${?} -eq 0 ] || exit 41
rm -f protocols.xml services.xml
[ ${?} -eq 0 ] || exit 42
}
download
process
update

26
x86_64/core/icu/PKGBUILD Normal file
View File

@ -0,0 +1,26 @@
pkgname=icu
pkgver=70.1
aver=70
bver=1
pkgrel=1
arch=('x86_64')
depends=(gcc bash)
makedepends=(llvm python3 doxygen)
source=(https://github.com/unicode-org/icu/releases/download/release-$aver-$bver/icu4c-${aver}_$bver-src.tgz)
build() {
cd $pkgname
cd source
./configure \
--prefix=/usr
make
}
package() {
cd $pkgname/source
make DESTDIR=$pkgdir install
}

View File

@ -0,0 +1,33 @@
pkgname=inetutils
pkgver=2.2
pkgrel=1
arch=('x86_64')
depends=(glibc libcap readline ncurses linux-pam)
source=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz)
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--libexecdir=/usr/sbin \
--localstatedir=/var \
--disable-logger \
--disable-whois \
--disable-rcp \
--disable-rexec \
--disable-rlogin \
--disable-rsh \
--disable-servers
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
mkdir -pv $pkgdir/{bin,sbin}
mv -v $pkgdir/usr/bin/{hostname,ping,ping6,traceroute} $pkgdir/bin
mv -v $pkgdir/usr/bin/ifconfig $pkgdir/sbin
}

View File

@ -0,0 +1,21 @@
pkgname=intltool
pkgver=0.51.0
pkgrel=2
arch=('x86_64')
depends=(glibc)
source=(http://launchpad.net/intltool/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz)
build() {
cd $pkgname-$pkgver
sed -i 's:\\\${:\\\$\\{:' intltool-update.in
./configure --prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR=$pkgdir install
}

Some files were not shown because too many files have changed in this diff Show More