syntax update

This commit is contained in:
Tim Biermann 2023-08-21 21:49:13 +02:00
parent 2d94010827
commit e4919d3423
106 changed files with 1102 additions and 1055 deletions

View File

@ -9,19 +9,19 @@ release=1
source=(https://download-mirror.savannah.gnu.org/releases/$name/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix=/usr \
--bindir=/bin \
--disable-nls
./configure \
--prefix=/usr \
--bindir=/bin \
--disable-nls
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
install -d $PKG/lib
mv $PKG/usr/lib/libacl.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/usr/lib/libacl.so) $PKG/usr/lib/libacl.so
install -d $PKG/lib
mv $PKG/usr/lib/libacl.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/usr/lib/libacl.so) $PKG/usr/lib/libacl.so
rm -r $PKG/usr/share/doc
rm -r $PKG/usr/share/doc
}

View File

@ -8,20 +8,20 @@ release=1
source=(https://download-mirror.savannah.gnu.org/releases/$name/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix=/usr \
--bindir=/bin \
--sysconfdir=/etc \
--disable-nls
./configure \
--prefix=/usr \
--bindir=/bin \
--sysconfdir=/etc \
--disable-nls
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
install -d $PKG/lib
mv $PKG/usr/lib/libattr.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/usr/lib/libattr.so) $PKG/usr/lib/libattr.so
install -d $PKG/lib
mv $PKG/usr/lib/libattr.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/usr/lib/libattr.so) $PKG/usr/lib/libattr.so
rm -r $PKG/usr/share/doc
rm -r $PKG/usr/share/doc
}

View File

@ -8,9 +8,11 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build () {
cd $name-$version
./configure --prefix=/usr
make
make prefix=$PKG/usr install
rm -r $PKG/usr/share/info
cd $name-$version
./configure --prefix=/usr
make
make prefix=$PKG/usr install
rm -r $PKG/usr/share/info
}

View File

@ -9,13 +9,13 @@ release=1
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
./configure --prefix=/usr
./configure --prefix=/usr
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/{info,doc}
rm $PKG/usr/share/automake-*/texinfo.tex
rm -r $PKG/usr/share/{info,doc}
rm $PKG/usr/share/automake-*/texinfo.tex
}

View File

@ -7,22 +7,22 @@ name=bash
version=5.2.15
release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-${version:0:3}.tar.gz
$name-$version.patch.gz profile)
$name-$version.patch.gz profile)
build() {
cd $name-${version:0:3}
cd $name-${version:0:3}
gunzip -c $SRC/$name-$version.patch.gz | patch -p0
gunzip -c $SRC/$name-$version.patch.gz | patch -p0
./configure \
--prefix=/usr \
--exec-prefix= \
--disable-nls \
--with-curses \
--with-installed-readline
make -j1
./configure \
--prefix=/usr \
--exec-prefix= \
--disable-nls \
--with-curses \
--with-installed-readline
make -j1
install -D -m 755 bash $PKG/bin/bash
install -D -m 644 doc/bash.1 $PKG/usr/share/man/man1/bash.1
install -D -m 644 $SRC/profile $PKG/etc/profile
install -D -m 755 bash $PKG/bin/bash
install -D -m 644 doc/bash.1 $PKG/usr/share/man/man1/bash.1
install -D -m 644 $SRC/profile $PKG/etc/profile
}

View File

@ -9,15 +9,15 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.gz)
build() {
cd $name-$version
cd $name-$version
./configure --prefix=/usr --with-readline
./configure --prefix=/usr --with-readline
# do not regen docs
touch doc/*.info doc/*.1 doc/Makefile
# do not regen docs
touch doc/*.info doc/*.1 doc/Makefile
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
rm -r $PKG/usr/share/info
}

View File

@ -9,10 +9,13 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
./configure --prefix=/usr --disable-nls
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/{doc,info}
rm $PKG/usr/share/bison/README.md
cd $name-$version
./configure --prefix=/usr \
--disable-nls
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/{doc,info}
rm $PKG/usr/share/bison/README.md
}

View File

@ -6,34 +6,34 @@ name=bzip2
version=1.0.8
release=3
source=(https://sourceware.org/pub/bzip2/$name-$version.tar.gz
bzip2.pc.in)
bzip2.pc.in)
build() {
cd $name-$version
cd $name-$version
install -d $PKG/usr/{bin,lib/pkgconfig,include,share/man/man1}
sed "/^CFLAGS/s/-O2/$CFLAGS/" -i Makefile Makefile-libbz2_so
install -d $PKG/usr/{bin,lib/pkgconfig,include,share/man/man1}
sed "/^CFLAGS/s/-O2/$CFLAGS/" -i Makefile Makefile-libbz2_so
make -f Makefile-libbz2_so
make -f Makefile-libbz2_so
install libbz2.so.$version $PKG/usr/lib
ln -s libbz2.so.$version $PKG/usr/lib/libbz2.so
ln -s libbz2.so.$version $PKG/usr/lib/libbz2.so.1.0
install libbz2.so.$version $PKG/usr/lib
ln -s libbz2.so.$version $PKG/usr/lib/libbz2.so
ln -s libbz2.so.$version $PKG/usr/lib/libbz2.so.1.0
make clean
make
make clean
make
install -m 0755 bzip2 bzip2recover bzdiff bzgrep bzmore $PKG/usr/bin
ln -s bzip2 $PKG/usr/bin/bunzip2
ln -s bzip2 $PKG/usr/bin/bzcat
ln -s bzdiff $PKG/usr/bin/bzcmp
ln -s bzgrep $PKG/usr/bin/bzegrep
ln -s bzgrep $PKG/usr/bin/bzfgrep
ln -s bzmore $PKG/usr/bin/bzless
install -m 0755 bzip2 bzip2recover bzdiff bzgrep bzmore $PKG/usr/bin
ln -s bzip2 $PKG/usr/bin/bunzip2
ln -s bzip2 $PKG/usr/bin/bzcat
ln -s bzdiff $PKG/usr/bin/bzcmp
ln -s bzgrep $PKG/usr/bin/bzegrep
ln -s bzgrep $PKG/usr/bin/bzfgrep
ln -s bzmore $PKG/usr/bin/bzless
install -m 0644 libbz2.a $PKG/usr/lib
install -m 0644 bzlib.h $PKG/usr/include
install -m 0644 *.1 $PKG/usr/share/man/man1
install -m 0644 libbz2.a $PKG/usr/lib
install -m 0644 bzlib.h $PKG/usr/include
install -m 0644 *.1 $PKG/usr/share/man/man1
sed "s/@VERSION@/$version/" $SRC/bzip2.pc.in > $PKG/usr/lib/pkgconfig/bzip2.pc
sed "s/@VERSION@/$version/" $SRC/bzip2.pc.in > $PKG/usr/lib/pkgconfig/bzip2.pc
}

View File

@ -8,12 +8,12 @@ release=1
source=(cacert.pem)
build() {
# see http://curl.haxx.se/docs/mk-ca-bundle.html how
# to create the bundle from Mozillas data:
# mk-ca-bundle.pl -p ALL:TRUSTED_DELEGATOR cacert.pem
# As of version 20180620 we are using again the bundle
# from curl without modifications.
# https://curl.se/docs/caextract.html
# see http://curl.haxx.se/docs/mk-ca-bundle.html how
# to create the bundle from Mozillas data:
# mk-ca-bundle.pl -p ALL:TRUSTED_DELEGATOR cacert.pem
# As of version 20180620 we are using again the bundle
# from curl without modifications.
# https://curl.se/docs/caextract.html
install -Dm 644 $SRC/cacert.pem $PKG/etc/ssl/cert.pem
install -Dm 644 $SRC/cacert.pem $PKG/etc/ssl/cert.pem
}

View File

@ -10,32 +10,32 @@ release=1
source=(https://cmake.org/files/v${version%.*}/$name-$version.tar.gz)
build() {
cd $name-$version
cd $name-$version
sed -i Source/CMakeInstallDestinations.cmake \
-e 's|share/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}|share/cmake|'
sed -i Source/CMakeInstallDestinations.cmake \
-e 's|share/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}|share/cmake|'
prt-get isinst ccache && PKGMK_CMAKE+=' --enable-ccache'
prt-get isinst ccache && PKGMK_CMAKE+=' --enable-ccache'
./bootstrap --generator=Ninja $PKGMK_CMAKE \
--prefix=/usr \
--datadir=/share/cmake \
--bootstrap-system-libuv \
--bootstrap-system-jsoncpp \
--bootstrap-system-librhash \
--no-system-cppdap \
--system-libs \
--parallel=${JOBS:-1} \
$(prt-get isinst python3-sphinx >/dev/null && echo --sphinx-man) \
-- -D CMake_BUILD_LTO=ON \
-D BUILD_TESTING=OFF
./bootstrap --generator=Ninja $PKGMK_CMAKE \
--prefix=/usr \
--datadir=/share/cmake \
--bootstrap-system-libuv \
--bootstrap-system-jsoncpp \
--bootstrap-system-librhash \
--no-system-cppdap \
--system-libs \
--parallel=${JOBS:-1} \
$(prt-get isinst python3-sphinx >/dev/null && echo --sphinx-man) \
-- -D CMake_BUILD_LTO=ON \
-D BUILD_TESTING=OFF
ninja -j ${JOBS:-1}
DESTDIR=$PKG ninja install
rm -r $PKG/usr/{doc,share/cmake/Help}
ninja -j ${JOBS:-1}
DESTDIR=$PKG ninja install
rm -r $PKG/usr/{doc,share/cmake/Help}
ln -sf $name $PKG/usr/share/$name-${version%.*}
ln -sf $name $PKG/usr/share/$name-${version%.*}
prt-get isinst bash-completion || rm -r $PKG/usr/share/bash-completion
rm -r $PKG/usr/share/emacs
prt-get isinst bash-completion || rm -r $PKG/usr/share/bash-completion
rm -r $PKG/usr/share/emacs
}

View File

@ -9,20 +9,20 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
FORCE_UNSAFE_CONFIGURE=1 \
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--disable-nls \
--disable-assert \
--enable-no-install-program=uptime,kill,chcon,runcon,groups
make
make DESTDIR=$PKG install
FORCE_UNSAFE_CONFIGURE=1 \
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--disable-nls \
--disable-assert \
--enable-no-install-program=uptime,kill,chcon,runcon,groups
make
make DESTDIR=$PKG install
install -d $PKG/bin
mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin
mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin
rm -r $PKG/usr/share/info
install -d $PKG/bin
mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin
mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin
rm -r $PKG/usr/share/info
}

View File

@ -9,20 +9,21 @@ release=1
source=(https://curl.haxx.se/download/$name-$version.tar.xz)
build() {
cd $name-$version
./configure \
--prefix=/usr \
--enable-ipv6 \
--enable-threaded-resolver \
--with-ca-bundle=/etc/ssl/cert.pem \
--with-openssl \
--with-nghttp2 \
--disable-ldap{,s} \
--without-brotli \
--without-libidn2 \
--without-libpsl \
--without-librtmp
make
make DESTDIR=$PKG install
make -C docs/libcurl DESTDIR=$PKG install
cd $name-$version
./configure \
--prefix=/usr \
--enable-ipv6 \
--enable-threaded-resolver \
--with-ca-bundle=/etc/ssl/cert.pem \
--with-openssl \
--with-nghttp2 \
--disable-ldap{,s} \
--without-brotli \
--without-libidn2 \
--without-libpsl \
--without-librtmp
make
make DESTDIR=$PKG install
make -C docs/libcurl DESTDIR=$PKG install
}

View File

@ -8,10 +8,13 @@ release=1
source=(http://gondor.apana.org.au/~herbert/dash/files/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr --bindir=/bin
make
make DESTDIR=$PKG install
ln -s dash $PKG/bin/sh
ln -s dash.1 $PKG/usr/share/man/man1/sh.1
cd $name-$version
./configure --prefix=/usr \
--bindir=/bin
make
make DESTDIR=$PKG install
ln -s dash $PKG/bin/sh
ln -s dash.1 $PKG/usr/share/man/man1/sh.1
}

View File

@ -6,20 +6,20 @@ name=db
version=5.3.28
release=2
source=(https://download.oracle.com/berkeley-db/$name-$version.tar.gz
0001-atomic-Rename-local-__atomic_compare_exchange-to-avo.patch)
0001-atomic-Rename-local-__atomic_compare_exchange-to-avo.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/0001-atomic-Rename-local-__atomic_compare_exchange-to-avo.patch
cd $name-$version
patch -p1 -i $SRC/0001-atomic-Rename-local-__atomic_compare_exchange-to-avo.patch
cd build_unix
../dist/configure --prefix=/usr \
--enable-compat185 \
--enable-shared \
--enable-static \
--enable-cxx
make
make DESTDIR=$PKG install
rm -r $PKG/usr/docs
chmod -R +w $PKG
cd build_unix
../dist/configure --prefix=/usr \
--enable-compat185 \
--enable-shared \
--enable-static \
--enable-cxx
make
make DESTDIR=$PKG install
rm -r $PKG/usr/docs
chmod -R +w $PKG
}

View File

@ -6,18 +6,18 @@ name=dcron
version=4.5
release=3
source=(http://www.jimpryor.net/linux/releases/$name-$version.tar.gz
crontab runjobs crond)
crontab runjobs crond)
build() {
cd $name-$version
cd $name-$version
make PREFIX=/usr
make DESTDIR=$PKG CRONTAB_GROUP=users install
make PREFIX=/usr
make DESTDIR=$PKG CRONTAB_GROUP=users install
install -m 600 $SRC/crontab $PKG/var/spool/cron/crontabs/root
ln -s ../var/spool/cron/crontabs/root $PKG/etc/crontab
install -D -m 755 $SRC/crond $PKG/etc/rc.d/crond
install -D -m 755 $SRC/runjobs $PKG/usr/sbin/runjobs
install -m 600 $SRC/crontab $PKG/var/spool/cron/crontabs/root
ln -s ../var/spool/cron/crontabs/root $PKG/etc/crontab
install -D -m 755 $SRC/crond $PKG/etc/rc.d/crond
install -D -m 755 $SRC/runjobs $PKG/usr/sbin/runjobs
install -d $PKG/etc/cron/{hourly,daily,weekly,monthly}
install -d $PKG/etc/cron/{hourly,daily,weekly,monthly}
}

View File

@ -7,25 +7,25 @@ name=dhcpcd
version=10.0.2
release=1
source=(https://github.com/NetworkConfiguration/dhcpcd/releases/download/v$version/$name-$version.tar.xz
rc.dhcpcd)
rc.dhcpcd)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix= \
--libexecdir=/lib/dhcpcd \
--dbdir=/var/lib/dhcpcd \
--sysconfdir=/etc/dhcpcd \
--rundir=/run/dhcpcd \
--enable-privsep \
--privsepuser=dhcpcd
./configure \
--prefix= \
--libexecdir=/lib/dhcpcd \
--dbdir=/var/lib/dhcpcd \
--sysconfdir=/etc/dhcpcd \
--rundir=/run/dhcpcd \
--enable-privsep \
--privsepuser=dhcpcd
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
install -d -o dhcpcd -g dhcpcd $PKG/var/lib/dhcpcd
install -D -m 0755 $SRC/rc.dhcpcd $PKG/etc/rc.d/dhcpcd
install -d -o dhcpcd -g dhcpcd $PKG/var/lib/dhcpcd
install -D -m 0755 $SRC/rc.dhcpcd $PKG/etc/rc.d/dhcpcd
chmod -R u+w $PKG
chmod -R u+w $PKG
}

View File

@ -8,9 +8,12 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
./configure --prefix=/usr --disable-nls
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
cd $name-$version
./configure --prefix=/usr \
--disable-nls
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
}

View File

@ -8,6 +8,6 @@ release=1
source=(https://github.com/ifreund/dumb_runtime_dir/releases/download/v$version/$name-$version.tar.gz)
build() {
make -C $name-$version
make -C $name-$version DESTDIR=$PKG PAMDIR="/lib/security" install
make -C $name-$version
make -C $name-$version DESTDIR=$PKG PAMDIR="/lib/security" install
}

View File

@ -9,25 +9,25 @@ release=1
source=(https://www.kernel.org/pub/linux/kernel/people/tytso/$name/v$version/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix=/usr \
--with-root-prefix= \
--enable-symlink-install \
--enable-elf-shlibs \
--disable-e2initrd-helper \
--disable-nls \
--disable-fsck \
--disable-libblkid \
--disable-libuuid \
--disable-uuidd \
--disable-fuse2fs
./configure \
--prefix=/usr \
--with-root-prefix= \
--enable-symlink-install \
--enable-elf-shlibs \
--disable-e2initrd-helper \
--disable-nls \
--disable-fsck \
--disable-libblkid \
--disable-libuuid \
--disable-uuidd \
--disable-fuse2fs
make
make -j1 DESTDIR=$PKG install install-libs
make
make -j1 DESTDIR=$PKG install install-libs
rm -r $PKG/{usr/share/info,etc/cron.d}
rm -r $PKG/{usr/share/info,etc/cron.d}
chmod +w -R $PKG
chmod +w -R $PKG
}

View File

@ -8,9 +8,10 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.lz)
build() {
cd $name-$version
sed "/^CFLAGS/s/-O2/$CFLAGS/" -i configure
./configure --prefix=/usr --exec-prefix=/
make
make DESTDIR=$PKG install-bin install-man
cd $name-$version
sed "/^CFLAGS/s/-O2/$CFLAGS/" -i configure
./configure --prefix=/usr --exec-prefix=/
make
make DESTDIR=$PKG install-bin install-man
}

View File

@ -9,15 +9,15 @@ release=1
source=(https://sourceware.org/$name/ftp/$version/$name-$version.tar.bz2)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix=/usr \
--program-prefix=eu- \
--disable-debuginfod \
--disable-libdebuginfod \
--disable-nls
./configure \
--prefix=/usr \
--program-prefix=eu- \
--disable-debuginfod \
--disable-libdebuginfod \
--disable-nls
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
}

View File

@ -7,37 +7,37 @@ name=eudev
version=3.2.12
release=1
source=(https://github.com/eudev-project/eudev/releases/download/v$version/$name-$version.tar.gz
81-crux.rules start_udev)
81-crux.rules start_udev)
build() {
cd $name-$version
cd $name-$version
# needed for static linking, e.g. dmsetup.static
sed -i '/^Libs:/s/-ludev/-ludev -lrt/' src/libudev/libudev.pc.in
# needed for static linking, e.g. dmsetup.static
sed -i '/^Libs:/s/-ludev/-ludev -lrt/' src/libudev/libudev.pc.in
./configure --prefix=/usr \
--sbindir=/sbin --bindir=/sbin \
--sysconfdir=/etc \
--with-rootprefix= \
--with-rootlibdir=/lib \
--libexecdir=/lib \
--disable-introspection \
--disable-manpages \
--enable-split-usr
./configure --prefix=/usr \
--sbindir=/sbin --bindir=/sbin \
--sysconfdir=/etc \
--with-rootprefix= \
--with-rootlibdir=/lib \
--libexecdir=/lib \
--disable-introspection \
--disable-manpages \
--enable-split-usr
make CFLAGS="$CFLAGS -D_GNU_SOURCE"
make install DESTDIR=$PKG
make -C man install DESTDIR=$PKG
make CFLAGS="$CFLAGS -D_GNU_SOURCE"
make install DESTDIR=$PKG
make -C man install DESTDIR=$PKG
# create binary hwdb
LD_LIBRARY_PATH=$PKG/lib \
$PKG/sbin/udevadm hwdb --update --root=$PKG
# create binary hwdb
LD_LIBRARY_PATH=$PKG/lib \
$PKG/sbin/udevadm hwdb --update --root=$PKG
# Devices
install -d $PKG/lib/{firmware,udev/devices/{pts,shm}}
install -d $PKG/{lib,sbin,run}
# Devices
install -d $PKG/lib/{firmware,udev/devices/{pts,shm}}
install -d $PKG/{lib,sbin,run}
# Add CRUX items
install -m 0755 $SRC/start_udev $PKG/sbin
install -m 0644 $SRC/81-crux.rules $PKG/lib/udev/rules.d
# Add CRUX items
install -m 0755 $SRC/start_udev $PKG/sbin
install -m 0644 $SRC/81-crux.rules $PKG/lib/udev/rules.d
}

View File

@ -7,34 +7,34 @@ name=exim
version=4.96
release=1
source=(https://ftp.exim.org/pub/exim/exim4/$name-$version.tar.xz
$name $name-config.patch)
$name $name-config.patch)
build() {
cd $name-$version
cd $name-$version
sed "s/#CFLAGS#/$CFLAGS/" $SRC/$name-config.patch | patch -p1
cp src/EDITME Local/Makefile
sed "s/#CFLAGS#/$CFLAGS/" $SRC/$name-config.patch | patch -p1
cp src/EDITME Local/Makefile
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
mv $PKG/usr/sbin/{$(readlink $PKG/usr/sbin/$name),$name}
mv $PKG/usr/sbin/{$(readlink $PKG/usr/sbin/$name),$name}
install -D -m 755 $SRC/exim $PKG/etc/rc.d/exim
install -D -m 644 doc/exim.8 $PKG/usr/share/man/man8/exim.8
install -D -m 755 $SRC/exim $PKG/etc/rc.d/exim
install -D -m 644 doc/exim.8 $PKG/usr/share/man/man8/exim.8
install -d $PKG/var/{log,spool} $PKG/usr/bin
install -d -m 0750 -o mail -g mail $PKG/var/{log,spool}/exim
install -d $PKG/var/{log,spool} $PKG/usr/bin
install -d -m 0750 -o mail -g mail $PKG/var/{log,spool}/exim
touch $PKG/var/log/exim/exim_{mainlog,paniclog,rejectlog}
chown mail:mail $PKG/var/log/exim/*
chmod 640 $PKG/var/log/exim/*
touch $PKG/var/log/exim/exim_{mainlog,paniclog,rejectlog}
chown mail:mail $PKG/var/log/exim/*
chmod 640 $PKG/var/log/exim/*
ln -sf $name $PKG/usr/sbin/sendmail
ln -sf ../sbin/$name $PKG/usr/bin/mailq
ln -sf $name $PKG/usr/sbin/sendmail
ln -sf ../sbin/$name $PKG/usr/bin/mailq
install -d $PKG/etc/ssl/{certs,keys}
touch $PKG/etc/ssl/certs/exim.crt
touch $PKG/etc/ssl/keys/exim.key
chmod 0600 $PKG/etc/ssl/{keys/exim.key,certs/exim.crt}
install -d $PKG/etc/ssl/{certs,keys}
touch $PKG/etc/ssl/certs/exim.crt
touch $PKG/etc/ssl/keys/exim.key
chmod 0600 $PKG/etc/ssl/{keys/exim.key,certs/exim.crt}
}

View File

@ -8,13 +8,13 @@ release=1
source=(https://download.sourceforge.net/$name/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
./configure --prefix=/usr
./configure --prefix=/usr
make
make DESTDIR=$PKG install
install -D -m 0644 doc/xmlwf.1 $PKG/usr/share/man/man1/xmlwf.1
make
make DESTDIR=$PKG install
install -D -m 0644 doc/xmlwf.1 $PKG/usr/share/man/man1/xmlwf.1
rm -r $PKG/usr/{lib/cmake,share/doc}
rm -r $PKG/usr/{lib/cmake,share/doc}
}

View File

@ -9,13 +9,15 @@ release=1
source=(http://www.astron.com/pub/file/$name-$version.tar.gz)
build() {
cd file-$version
./configure \
--prefix=/usr \
--enable-fsect-man5 \
--enable-static \
--disable-libseccomp
make
make DESTDIR=$PKG install
rmdir $PKG/usr/share/man/man4
cd file-$version
./configure \
--prefix=/usr \
--enable-fsect-man5 \
--enable-static \
--disable-libseccomp
make
make DESTDIR=$PKG install
rmdir $PKG/usr/share/man/man4
}

View File

@ -8,13 +8,13 @@ release=1
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
./configure --prefix=/usr --disable-nls
make
make DESTDIR=$PKG install
./configure --prefix=/usr --disable-nls
make
make DESTDIR=$PKG install
rm $PKG/usr/bin/{updatedb,locate}
rm $PKG/usr/share/man/man1/{updatedb.1,locate.1}
rm -r $PKG/usr/{libexec,var,share/{info,man/man5}}
rm $PKG/usr/bin/{updatedb,locate}
rm $PKG/usr/share/man/man1/{updatedb.1,locate.1}
rm -r $PKG/usr/{libexec,var,share/{info,man/man5}}
}

View File

@ -8,16 +8,16 @@ release=2
source=(https://github.com/westes/flex/releases/download/v$version/$name-$version.tar.gz)
build() {
cd $name-$version
cd $name-$version
CFLAGS="$CFLAGS -D_GNU_SOURCE" \
./configure --prefix=/usr --disable-nls
CFLAGS="$CFLAGS -D_GNU_SOURCE" \
./configure --prefix=/usr --disable-nls
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
ln -sf flex $PKG/usr/bin/lex
ln -sf flex.1.gz $PKG/usr/share/man/man1/lex.1.gz
ln -sf flex $PKG/usr/bin/lex
ln -sf flex.1.gz $PKG/usr/share/man/man1/lex.1.gz
rm -r $PKG/usr/share/{info,doc}
rm -r $PKG/usr/share/{info,doc}
}

View File

@ -9,17 +9,17 @@ release=1
source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
export ac_cv_libsigsegv=no
export ac_cv_libsigsegv=no
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--disable-nls
make
make DESTDIR=$PKG install
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--disable-nls
make
make DESTDIR=$PKG install
rm -r $PKG/usr/{etc,share/info}
rm $PKG/usr/bin/gawk-$version
rm -r $PKG/usr/{etc,share/info}
rm $PKG/usr/bin/gawk-$version
}

View File

@ -9,14 +9,14 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.gz)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix=/usr \
--enable-libgdbm-compat \
--disable-nls
make
make DESTDIR=$PKG install
./configure \
--prefix=/usr \
--enable-libgdbm-compat \
--disable-nls
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
rm -r $PKG/usr/share/info
}

View File

@ -9,14 +9,14 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
./configure \
--prefix=/usr \
--enable-{shared,static} \
--disable-{csharp,java,nls} \
--without-{emacs,git} \
--with-included-{glib,libcroco,libxml,libunistring}
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/{info,doc}
cd $name-$version
./configure \
--prefix=/usr \
--enable-{shared,static} \
--disable-{csharp,java,nls} \
--without-{emacs,git} \
--with-included-{glib,libcroco,libxml,libunistring}
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/{info,doc}
}

View File

@ -8,9 +8,11 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/{doc,info}
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/{doc,info}
}

View File

@ -9,14 +9,14 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix=/usr \
--disable-nls \
--without-libsigsegv
make
make DESTDIR=$PKG install
./configure \
--prefix=/usr \
--disable-nls \
--without-libsigsegv
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
rm -r $PKG/usr/share/info
}

View File

@ -8,25 +8,25 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.gz)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--without-x
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--without-x
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
sed -e 's|^\(papersize\).*|\1 /etc/papersize|' \
-i $PKG/usr/share/groff/current/font/*/DESC
sed -e 's|^\(papersize\).*|\1 /etc/papersize|' \
-i $PKG/usr/share/groff/current/font/*/DESC
install -d $PKG/etc
echo 'letter' > $PKG/etc/papersize
install -d $PKG/etc
echo 'letter' > $PKG/etc/papersize
rm -rf $PKG/usr/share/{info,doc}
rm -rf $PKG/usr/share/{info,doc}
ln -s eqn $PKG/usr/bin/geqn
ln -s tbl $PKG/usr/bin/gtbl
ln -s soelim $PKG/usr/bin/zsoelim
ln -s eqn $PKG/usr/bin/geqn
ln -s tbl $PKG/usr/bin/gtbl
ln -s soelim $PKG/usr/bin/zsoelim
}

View File

@ -8,23 +8,24 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
cd $name-$version
install -d $PKG/bin
mv $PKG/usr/bin/{gzip,gunzip,zcat} $PKG/bin
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm $PKG/usr/share/man/man1/{gunzip.1,zcat.1,zcmp.1}
ln -s gzip.1.gz $PKG/usr/share/man/man1/gunzip.1.gz
ln -s gzip.1.gz $PKG/usr/share/man/man1/zcat.1.gz
ln -s zdiff.1.gz $PKG/usr/share/man/man1/zcmp.1.gz
install -d $PKG/bin
mv $PKG/usr/bin/{gzip,gunzip,zcat} $PKG/bin
# make uncompress a symlink to gunzip, since the hardlink
# will not work if / and /usr are on different file systems.
rm $PKG/usr/bin/uncompress
ln -s /bin/gunzip $PKG/usr/bin/uncompress
rm $PKG/usr/share/man/man1/{gunzip.1,zcat.1,zcmp.1}
ln -s gzip.1.gz $PKG/usr/share/man/man1/gunzip.1.gz
ln -s gzip.1.gz $PKG/usr/share/man/man1/zcat.1.gz
ln -s zdiff.1.gz $PKG/usr/share/man/man1/zcmp.1.gz
rm -r $PKG/usr/share/info
# make uncompress a symlink to gunzip, since the hardlink
# will not work if / and /usr are on different file systems.
rm $PKG/usr/bin/uncompress
ln -s /bin/gunzip $PKG/usr/bin/uncompress
rm -r $PKG/usr/share/info
}

View File

@ -8,7 +8,8 @@ release=1
source=(https://downloads.sourceforge.net/project/$name/$name/$name-$version.tar.gz)
build() {
cd $name-$version
make
make DESTDIR=$PKG install
cd $name-$version
make
make DESTDIR=$PKG install
}

View File

@ -9,9 +9,9 @@ release=1
source=(https://crux.nu/files/$name-$version.tar.xz httpup)
build() {
export CPPFLAGS="-Wno-error=mismatched-new-delete"
cd $name-$version
make
make DESTDIR=$PKG prefix=/usr mandir=/usr/share/man install
install -D -m 755 $SRC/httpup $PKG/etc/ports/drivers/httpup
export CPPFLAGS="-Wno-error=mismatched-new-delete"
cd $name-$version
make
make DESTDIR=$PKG prefix=/usr mandir=/usr/share/man install
install -D -m 755 $SRC/httpup $PKG/etc/ports/drivers/httpup
}

View File

@ -8,6 +8,6 @@ release=1
source=(services protocols update.sh)
build() {
install -d -m 755 $PKG/etc
install -m 644 {services,protocols} $PKG/etc
install -d -m 755 $PKG/etc
install -m 644 {services,protocols} $PKG/etc
}

View File

@ -7,29 +7,29 @@ name=inetutils
version=2.4
release=1
source=(http://ftpmirror.gnu.org/gnu/inetutils/inetutils-$version.tar.gz
inetd.conf inetd)
inetd.conf inetd)
build() {
cd inetutils-$version
cd inetutils-$version
./configure \
--prefix=/usr \
--libexecdir=/usr/sbin \
--localstatedir=/var \
--sysconfdir=/etc \
--disable-{servers,clients} \
--enable-{hostname,ifconfig,inetd,ftp,telnet,traceroute}
./configure \
--prefix=/usr \
--libexecdir=/usr/sbin \
--localstatedir=/var \
--sysconfdir=/etc \
--disable-{servers,clients} \
--enable-{hostname,ifconfig,inetd,ftp,telnet,traceroute}
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
install -d $PKG/{bin,sbin,etc/rc.d}
install -d $PKG/{bin,sbin,etc/rc.d}
mv $PKG/usr/bin/hostname $PKG/bin
mv $PKG/usr/bin/ifconfig $PKG/sbin
mv $PKG/usr/bin/hostname $PKG/bin
mv $PKG/usr/bin/ifconfig $PKG/sbin
install -m 644 $SRC/inetd.conf $PKG/etc
install -m 755 $SRC/inetd $PKG/etc/rc.d
install -m 644 $SRC/inetd.conf $PKG/etc
install -m 755 $SRC/inetd $PKG/etc/rc.d
rm -r $PKG/usr/share/info
rm -r $PKG/usr/share/info
}

View File

@ -7,19 +7,19 @@ name=iproute2
version=6.4.0
release=1
source=(https://www.kernel.org/pub/linux/utils/net/$name/$name-$version.tar.xz
lo.iproute2 net.iproute2)
lo.iproute2 net.iproute2)
build() {
cd $name-$version
cd $name-$version
./configure
make CCOPTS="$CFLAGS"
make DESTDIR=$PKG install
./configure
make CCOPTS="$CFLAGS"
make DESTDIR=$PKG install
install -D -m 0755 $SRC/lo.iproute2 $PKG/etc/rc.d/lo
install -D -m 0755 $SRC/net.iproute2 $PKG/etc/rc.d/net
install -D -m 0755 $SRC/lo.iproute2 $PKG/etc/rc.d/lo
install -D -m 0755 $SRC/net.iproute2 $PKG/etc/rc.d/net
# add ip to user path via symlink
install -d $PKG/bin
ln -s /sbin/ip $PKG/bin/ip
# add ip to user path via symlink
install -d $PKG/bin
ln -s /sbin/ip $PKG/bin/ip
}

View File

@ -9,14 +9,14 @@ release=1
source=(https://www.netfilter.org/projects/$name/files/$name-$version.tar.xz)
build () {
cd $name-$version
cd $name-$version
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--enable-libipq \
--enable-nftables
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--enable-libipq \
--enable-nftables
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
}

View File

@ -8,9 +8,9 @@ release=1
source=(https://github.com/akheron/jansson/releases/download/v$version/$name-$version.tar.bz2)
build() {
cd $name-$version
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
./configure --prefix=/usr
make
make DESTDIR=$PKG install
}

View File

@ -8,21 +8,21 @@ release=1
source=(https://www.kernel.org/pub/linux/utils/$name/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
./configure --prefix=/usr \
--datadir=/usr/share/kbd \
--disable-vlock \
--disable-nls \
--disable-tests
make
make DESTDIR=$PKG install
./configure --prefix=/usr \
--datadir=/usr/share/kbd \
--disable-vlock \
--disable-nls \
--disable-tests
make
make DESTDIR=$PKG install
ln -sf default8x16.psfu.gz $PKG/usr/share/kbd/consolefonts/default.gz
ln -sf default8x16.psfu.gz $PKG/usr/share/kbd/consolefonts/default.gz
rm -r $PKG/usr/share/kbd/keymaps/{ppc,mac,atari,amiga,sun}
rm $PKG/usr/bin/{loadunimap,mapscrn,resizecons,psf*table}
rm $PKG/usr/share/man/man8/{loadunimap,mapscrn,resizecons}.8
rm $PKG/usr/share/man/man1/psf*table.1
find $PKG/usr/share/kbd/ -type f -name "README*" -delete
rm -r $PKG/usr/share/kbd/keymaps/{ppc,mac,atari,amiga,sun}
rm $PKG/usr/bin/{loadunimap,mapscrn,resizecons,psf*table}
rm $PKG/usr/share/man/man8/{loadunimap,mapscrn,resizecons}.8
rm $PKG/usr/share/man/man1/psf*table.1
find $PKG/usr/share/kbd/ -type f -name "README*" -delete
}

View File

@ -8,33 +8,33 @@ release=1
source=(https://www.kernel.org/pub/linux/utils/kernel/$name/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix=/usr \
--bindir=/sbin \
--sysconfdir=/etc \
--disable-manpages \
--with-rootlibdir=/lib
./configure \
--prefix=/usr \
--bindir=/sbin \
--sysconfdir=/etc \
--disable-manpages \
--with-rootlibdir=/lib
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
install -d $PKG/etc/{modprobe,depmod}.d
install -d $PKG/bin
install -d $PKG/usr/share/man/{man5,man8}
install -d $PKG/etc/{modprobe,depmod}.d
install -d $PKG/bin
install -d $PKG/usr/share/man/{man5,man8}
install -m 0644 man/*.5 $PKG/usr/share/man/man5
install -m 0644 man/*.8 $PKG/usr/share/man/man8
install -m 0644 man/*.5 $PKG/usr/share/man/man5
install -m 0644 man/*.8 $PKG/usr/share/man/man8
ln -s kmod $PKG/sbin/modinfo
ln -s kmod $PKG/sbin/depmod
ln -s kmod $PKG/sbin/insmod
ln -s kmod $PKG/sbin/lsmod
ln -s kmod $PKG/sbin/rmmod
ln -s kmod $PKG/sbin/modprobe
ln -s ../sbin/kmod $PKG/bin/lsmod
ln -s kmod $PKG/sbin/modinfo
ln -s kmod $PKG/sbin/depmod
ln -s kmod $PKG/sbin/insmod
ln -s kmod $PKG/sbin/lsmod
ln -s kmod $PKG/sbin/rmmod
ln -s kmod $PKG/sbin/modprobe
ln -s ../sbin/kmod $PKG/bin/lsmod
# remove bash-completion stuff
rm -r $PKG/usr/share/bash-completion
# remove bash-completion stuff
rm -r $PKG/usr/share/bash-completion
}

View File

@ -7,12 +7,13 @@ name=less
version=643
release=1
source=(https://www.greenwoodsoftware.com/less/$name-$version-beta.tar.gz
filter)
filter)
build() {
cd $name-$version
./configure --prefix=/usr --with-regex=pcre2
make
make DESTDIR=$PKG install
install -m 755 -D $SRC/filter $PKG/usr/lib/less/filter
cd $name-$version
./configure --prefix=/usr --with-regex=pcre2
make
make DESTDIR=$PKG install
install -m 755 -D $SRC/filter $PKG/usr/lib/less/filter
}

View File

@ -9,16 +9,16 @@ release=1
source=(https://github.com/libarchive/libarchive/releases/download/v$version/$name-$version.tar.xz)
build() {
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DHAVE_LZMA_STREAM_ENCODER_MT=1" \
-D ENABLE_TAR_SHARED=ON \
-D ENABLE_LIBB2=OFF \
-D ENABLE_LIBXML2=OFF \
-D ENABLE_NETTLE=OFF \
-Wno-dev
cmake --build build -j ${JOBS:-1}
DESTDIR=$PKG cmake --install build
ln -s $name.so.20 $PKG/usr/lib/$name.so.19
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DHAVE_LZMA_STREAM_ENCODER_MT=1" \
-D ENABLE_TAR_SHARED=ON \
-D ENABLE_LIBB2=OFF \
-D ENABLE_LIBXML2=OFF \
-D ENABLE_NETTLE=OFF \
-Wno-dev
cmake --build build -j ${JOBS:-1}
DESTDIR=$PKG cmake --install build
ln -s $name.so.20 $PKG/usr/lib/$name.so.19
}

View File

@ -9,20 +9,20 @@ release=1
source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
sed "/^CFLAGS/s/-O2/$CFLAGS/" -i Make.Rules
sed "/^CFLAGS/s/-O2/$CFLAGS/" -i Make.Rules
make install \
GOLANG=no \
RAISE_SETFCAP=no \
PKGCONFIGDIR=/usr/lib/pkgconfig \
DESTDIR=$PKG
make install \
GOLANG=no \
RAISE_SETFCAP=no \
PKGCONFIGDIR=/usr/lib/pkgconfig \
DESTDIR=$PKG
install -d $PKG/usr/lib
mv $PKG/lib/lib{cap.a,psx.*} $PKG/usr/lib
rm $PKG/lib/libcap.so
ln -s ../../lib/libcap.so.$version $PKG/usr/lib/libcap.so
install -d $PKG/usr/lib
mv $PKG/lib/lib{cap.a,psx.*} $PKG/usr/lib
rm $PKG/lib/libcap.so
ln -s ../../lib/libcap.so.$version $PKG/usr/lib/libcap.so
sed '/^libdir/s|/lib|/usr/lib|' -i $PKG/usr/lib/pkgconfig/*.pc
sed '/^libdir/s|/lib|/usr/lib|' -i $PKG/usr/lib/pkgconfig/*.pc
}

View File

@ -9,33 +9,33 @@ release=1
source=(https://mirrors.kernel.org/sourceware/lvm2/LVM2.2.03.22.tgz)
build() {
cd LVM2.2.03.22
cd LVM2.2.03.22
# libaio is not needed for libdevmapper
sed 's/libaio.h//' -i configure
# libaio is not needed for libdevmapper
sed 's/libaio.h//' -i configure
CONFIG_SHELL=/bin/bash \
./configure \
--prefix=/usr \
--exec-prefix= \
--datarootdir=/usr \
--with-udev-prefix= \
--mandir=/usr/share/man \
--disable-readline \
--disable-selinux \
--enable-pkgconfig \
--enable-static_link \
--enable-udev_sync \
--enable-udev_rules \
--with-{user,group}=root
CONFIG_SHELL=/bin/bash \
./configure \
--prefix=/usr \
--exec-prefix= \
--datarootdir=/usr \
--with-udev-prefix= \
--mandir=/usr/share/man \
--disable-readline \
--disable-selinux \
--enable-pkgconfig \
--enable-static_link \
--enable-udev_sync \
--enable-udev_rules \
--with-{user,group}=root
make device-mapper
make -j1 DESTDIR=$PKG install_device-mapper
install -m0644 -D udev/12-dm-permissions.rules $PKG/etc/udev/rules.d/12-dm-permissions.rules.example
make device-mapper
make -j1 DESTDIR=$PKG install_device-mapper
install -m0644 -D udev/12-dm-permissions.rules $PKG/etc/udev/rules.d/12-dm-permissions.rules.example
# symlink dmsetup to dmstats and not dmsetup.static
ln -sf dmsetup $PKG/sbin/dmstats
# symlink dmsetup to dmstats and not dmsetup.static
ln -sf dmsetup $PKG/sbin/dmstats
# pkgconfig insists on /lib one or the other way...
sed -i '/^libdir=/s|${exec_prefix}|/usr|' $PKG/usr/lib/pkgconfig/devmapper.pc
# pkgconfig insists on /lib one or the other way...
sed -i '/^libdir=/s|${exec_prefix}|/usr|' $PKG/usr/lib/pkgconfig/devmapper.pc
}

View File

@ -8,13 +8,13 @@ release=1
source=(https://thrysoee.dk/editline/$name-${version/_/-}.tar.gz)
build() {
cd $name-${version/_/-}
cd $name-${version/_/-}
./configure --prefix=/usr
./configure --prefix=/usr
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
rm $PKG/usr/share/man/man3/history.3 # conflicts with readline
ln -s editline.3 $PKG/usr/share/man/man3/el.3
rm $PKG/usr/share/man/man3/history.3 # conflicts with readline
ln -s editline.3 $PKG/usr/share/man/man3/el.3
}

View File

@ -8,9 +8,11 @@ release=1
source=(https://github.com/libffi/libffi/releases/download/v$version/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
}

View File

@ -6,20 +6,20 @@ name=libgmp
version=6.3.0
release=1
source=(https://gmplib.org/download/gmp/gmp-$version.tar.xz
gmp.h)
gmp.h)
build() {
cd gmp-$version
cd gmp-$version
./configure \
--prefix=/usr \
--enable-cxx \
--build=x86_64-unknown-linux-gnu
make
make DESTDIR=$PKG install
./configure \
--prefix=/usr \
--enable-cxx \
--build=x86_64-unknown-linux-gnu
make
make DESTDIR=$PKG install
mv $PKG/usr/include/gmp{,-64}.h
install -m 0644 $SRC/gmp.h $PKG/usr/include/
mv $PKG/usr/include/gmp{,-64}.h
install -m 0644 $SRC/gmp.h $PKG/usr/include/
rm -r $PKG/usr/share
rm -r $PKG/usr/share
}

View File

@ -8,10 +8,10 @@ release=1
source=(https://www.netfilter.org/projects/$name/files/$name-$version.tar.bz2)
build() {
cd $name-$version
cd $name-$version
./configure --prefix=/usr
./configure --prefix=/usr
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
}

View File

@ -9,9 +9,11 @@ release=1
source=(https://ftp.gnu.org/gnu/mpc/mpc-$version.tar.gz)
build() {
cd mpc-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share
cd mpc-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share
}

View File

@ -7,13 +7,15 @@ name=libmpfr
version=4.2.0-p12
release=1
source=(https://www.mpfr.org/mpfr-${version%-*}/mpfr-${version%-*}.tar.xz
$name-$version.patch)
$name-$version.patch)
build() {
cd mpfr-${version%-*}
patch -p1 -i $SRC/$name-$version.patch
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share
cd mpfr-${version%-*}
patch -p1 -i $SRC/$name-$version.patch
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share
}

View File

@ -9,8 +9,9 @@ release=1
source=(https://www.netfilter.org/pub/libnftnl/libnftnl-$version.tar.xz)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
}

View File

@ -8,13 +8,13 @@ release=1
source=(https://github.com/nghttp2/nghttp2/releases/download/v$version/nghttp2-$version.tar.xz)
build() {
cd nghttp2-$version
cd nghttp2-$version
./configure \
--prefix=/usr \
--enable-lib-only \
--disable-examples \
--disable-python-bindings
make
make -C lib DESTDIR=$PKG install
./configure \
--prefix=/usr \
--enable-lib-only \
--disable-examples \
--disable-python-bindings
make
make -C lib DESTDIR=$PKG install
}

View File

@ -8,9 +8,10 @@ release=1
source=(https://github.com/thkukuk/$name/releases/download/v$version/$name-$version.tar.xz)
build() {
cd $name-$version
autoreconf -fi
./configure --prefix=/usr
make
make DESTDIR=$PKG install
cd $name-$version
autoreconf -fi
./configure --prefix=/usr
make
make DESTDIR=$PKG install
}

View File

@ -8,20 +8,20 @@ release=1
source=(https://downloads.sourceforge.net/project/pcre/pcre/$version/pcre-$version.tar.bz2)
build() {
cd pcre-$version
cd pcre-$version
./configure \
--prefix=/usr \
--enable-utf8 \
--enable-unicode-properties \
--enable-jit
make
make DESTDIR=$PKG install
./configure \
--prefix=/usr \
--enable-utf8 \
--enable-unicode-properties \
--enable-jit
make
make DESTDIR=$PKG install
install -d $PKG/lib
mv $PKG/usr/lib/libpcre.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/usr/lib/libpcre.so) $PKG/usr/lib/libpcre.so
install -d $PKG/lib
mv $PKG/usr/lib/libpcre.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/usr/lib/libpcre.so) $PKG/usr/lib/libpcre.so
rm -r $PKG/usr/share/doc
rm $PKG/usr/share/man/man3/{pcre{16,32}*,pcre_utf{16,32}*}
rm -r $PKG/usr/share/doc
rm $PKG/usr/share/man/man3/{pcre{16,32}*,pcre_utf{16,32}*}
}

View File

@ -8,20 +8,20 @@ release=1
source=(https://github.com/PhilipHazel/pcre2/releases/download/pcre2-$version/pcre2-$version.tar.gz)
build() {
cd pcre2-$version
cd pcre2-$version
./configure \
--prefix=/usr \
--enable-jit \
--enable-pcre2-16 \
--enable-pcre2-32
./configure \
--prefix=/usr \
--enable-jit \
--enable-pcre2-16 \
--enable-pcre2-32
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
install -d $PKG/lib
mv $PKG/usr/lib/libpcre2-8.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/usr/lib/libpcre2-8.so) $PKG/usr/lib/libpcre2-8.so
install -d $PKG/lib
mv $PKG/usr/lib/libpcre2-8.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/usr/lib/libpcre2-8.so) $PKG/usr/lib/libpcre2-8.so
rm -r $PKG/usr/share/doc
rm -r $PKG/usr/share/doc
}

View File

@ -8,8 +8,9 @@ release=1
source=(http://download.savannah.gnu.org/releases/$name/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
}

View File

@ -8,16 +8,16 @@ release=1
source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.bz2)
build() {
cd $name-$version
cd $name-$version
# move path for rpcbind.sock to /run
sed 's|/var/run|/run|' -i tirpc/rpc/rpcb_prot.h
# move path for rpcbind.sock to /run
sed 's|/var/run|/run|' -i tirpc/rpc/rpcb_prot.h
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--disable-gssapi
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--disable-gssapi
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
}

View File

@ -8,9 +8,11 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
}

View File

@ -9,13 +9,13 @@ release=1
source=(https://github.com/libusb/libusb/releases/download/v$version/$name-$version.tar.bz2)
build () {
cd $name-$version
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
./configure --prefix=/usr
make
make DESTDIR=$PKG install
install -d $PKG/lib
mv $PKG/usr/lib/libusb-1.0.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/lib/libusb-1.0.so.0) $PKG/usr/lib/libusb-1.0.so
install -d $PKG/lib
mv $PKG/usr/lib/libusb-1.0.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/lib/libusb-1.0.so.0) $PKG/usr/lib/libusb-1.0.so
}

View File

@ -8,10 +8,10 @@ release=1
source=(https://dist.libuv.org/dist/v$version/$name-v$version.tar.gz)
build() {
cd $name-v$version
cd $name-v$version
./autogen.sh
./configure --prefix=/usr
make
make DESTDIR=$PKG install
./autogen.sh
./configure --prefix=/usr
make
make DESTDIR=$PKG install
}

View File

@ -5,31 +5,31 @@
name=linux-pam
version=1.5.3
release=1
source=(https://github.com/$name/$name/releases/download/v${version}/Linux-PAM-$version.tar.xz \
common-account common-auth common-password common-session \
other)
source=(https://github.com/$name/$name/releases/download/v${version}/Linux-PAM-$version.tar.xz
common-account common-auth common-password common-session
other)
build() {
cd Linux-PAM-$version
cd Linux-PAM-$version
CONFIG_SHELL=/bin/bash ./configure \
--prefix=/usr \
--libdir=/lib \
--disable-nls \
--disable-prelude \
--enable-db=no
make
make DESTDIR=$PKG install
CONFIG_SHELL=/bin/bash ./configure \
--prefix=/usr \
--libdir=/lib \
--disable-nls \
--disable-prelude \
--enable-db=no
make
make DESTDIR=$PKG install
mv $PKG/lib/pkgconfig $PKG/usr/lib
mv $PKG/lib/pkgconfig $PKG/usr/lib
# unix_chkpwd needs to be setuid root
chmod u+s $PKG/sbin/unix_chkpwd
# unix_chkpwd needs to be setuid root
chmod u+s $PKG/sbin/unix_chkpwd
mkdir -p $PKG/etc/pam.d
install -o root -g root -m 0644 \
$SRC/{common-*,other} \
$PKG/etc/pam.d/
mkdir -p $PKG/etc/pam.d
install -o root -g root -m 0644 \
$SRC/{common-*,other} \
$PKG/etc/pam.d/
rm -r $PKG/usr/{lib/systemd,share/doc}
rm -r $PKG/usr/{lib/systemd,share/doc}
}

View File

@ -8,11 +8,11 @@ release=1
source=(http://download.savannah.gnu.org/releases/lzip/lzlib/lzlib-$version.tar.gz)
build() {
cd $name-$version
cd $name-$version
./configure --prefix=/usr CFLAGS="$CFLAGS"
make
make DESTDIR=$PKG install
./configure --prefix=/usr CFLAGS="$CFLAGS"
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share
rm -r $PKG/usr/share
}

View File

@ -8,15 +8,15 @@ release=1
source=(https://www.oberhumer.com/opensource/lzo/download/$name-$version.tar.gz)
build() {
cd $name-$version
cd $name-$version
./configure --prefix=/usr --enable-shared
make
make DESTDIR=$PKG install
./configure --prefix=/usr --enable-shared
make
make DESTDIR=$PKG install
install -d $PKG/lib
mv $PKG/usr/lib/liblzo2.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/lib/liblzo2.so.2) $PKG/usr/lib/liblzo2.so
install -d $PKG/lib
mv $PKG/usr/lib/liblzo2.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/lib/liblzo2.so.2) $PKG/usr/lib/liblzo2.so
rm -r $PKG/usr/share
rm -r $PKG/usr/share
}

View File

@ -8,9 +8,11 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
./configure --prefix=/usr --disable-nls
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
cd $name-$version
./configure --prefix=/usr --disable-nls
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
}

View File

@ -8,9 +8,12 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.lz)
build() {
cd $name-$version
./configure --prefix=/usr --disable-nls
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
cd $name-$version
./configure --prefix=/usr \
--disable-nls
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
}

View File

@ -7,27 +7,27 @@ name=man-db
version=2.11.2
release=1
source=(https://download.savannah.gnu.org/releases/$name/$name-$version.tar.xz
mandb.cron)
mandb.cron)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/$name \
--disable-setuid \
--disable-cache-owner \
--disable-nls \
--with-systemdtmpfilesdir=no \
--with-systemdsystemunitdir=no \
--without-libseccomp
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/$name \
--disable-setuid \
--disable-cache-owner \
--disable-nls \
--with-systemdtmpfilesdir=no \
--with-systemdsystemunitdir=no \
--without-libseccomp
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/doc
rm -r $PKG/usr/share/doc
install -d $PKG/var/cache/man
install -D -o root -g root -m 0755 $SRC/mandb.cron $PKG/etc/cron/daily/mandb
install -d $PKG/var/cache/man
install -D -o root -g root -m 0755 $SRC/mandb.cron $PKG/etc/cron/daily/mandb
}

View File

@ -6,16 +6,16 @@ name=man-pages
version=6.05.01
release=1
source=(https://www.kernel.org/pub/linux/docs/$name/$name-$version.tar.xz
https://www.kernel.org/pub/linux/docs/$name/$name-posix/$name-posix-2017-a.tar.xz)
https://www.kernel.org/pub/linux/docs/$name/$name-posix/$name-posix-2017-a.tar.xz)
build() {
cd $name-$version
cd $name-$version
rm man5/passwd.5
make prefix=/usr DESTDIR=$PKG install
rm man5/passwd.5
make prefix=/usr DESTDIR=$PKG install
cd $SRC/$name-posix-2017
make prefix=/usr DESTDIR=$PKG install
cd $SRC/$name-posix-2017
make prefix=/usr DESTDIR=$PKG install
touch $PKG/usr/share/man/whatis
touch $PKG/usr/share/man/whatis
}

View File

@ -6,18 +6,18 @@ name=mlocate
version=0.26
release=3
source=(https://releases.pagure.org/$name/$name-$version.tar.xz
mlocate updatedb.conf)
mlocate updatedb.conf)
build() {
cd $name-$version
cd $name-$version
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--disable-nls
make
make DESTDIR=$PKG install
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--disable-nls
make
make DESTDIR=$PKG install
install -D -m 0755 $SRC/mlocate $PKG/etc/cron/daily/mlocate
install -m 0644 $SRC/updatedb.conf $PKG/etc
install -D -m 0755 $SRC/mlocate $PKG/etc/cron/daily/mlocate
install -m 0644 $SRC/updatedb.conf $PKG/etc
}

View File

@ -8,13 +8,13 @@ release=1
source=(https://www.bytereef.org/software/$name/releases/$name-$version.tar.gz)
build() {
cd $name-$version
cd $name-$version
./configure --prefix=/usr
./configure --prefix=/usr
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/doc
rmdir $PKG/usr/share
rm -r $PKG/usr/share/doc
rmdir $PKG/usr/share
}

View File

@ -8,8 +8,9 @@ release=1
source=(https://www.nasm.us/pub/nasm/releasebuilds/$version/$name-$version.tar.xz)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
}

View File

@ -8,36 +8,36 @@ release=1
source=(https://invisible-mirror.net/archives/$name/$name-$version.tar.gz)
build() {
cd $name-$version
cd $name-$version
./configure --prefix=/usr \
--mandir=/usr/share/man \
--with-{normal,shared} \
--without-{debug,ada,tests} \
--enable-pc-files \
--with-pkg-config-libdir=/usr/lib/pkgconfig \
--enable-widec
./configure --prefix=/usr \
--mandir=/usr/share/man \
--with-{normal,shared} \
--without-{debug,ada,tests} \
--enable-pc-files \
--with-pkg-config-libdir=/usr/lib/pkgconfig \
--enable-widec
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
install -d $PKG/lib
install -d $PKG/lib
# move library to /lib and create symlinks
mv $PKG/usr/lib/libncursesw.so.* $PKG/lib
ln -sf ../../lib/libncursesw.so.$version $PKG/usr/lib/libncursesw.so
ln -s libncursesw.so.$version $PKG/lib/libncurses.so.${version%%.*}
# move library to /lib and create symlinks
mv $PKG/usr/lib/libncursesw.so.* $PKG/lib
ln -sf ../../lib/libncursesw.so.$version $PKG/usr/lib/libncursesw.so
ln -s libncursesw.so.$version $PKG/lib/libncurses.so.${version%%.*}
# linker scripts and .pc files for non-wide ncurses
for LIB in ncurses form panel menu ; do
echo "INPUT(-l${LIB}w)" > $PKG/usr/lib/lib${LIB}.so
ln -s ${LIB}w.pc $PKG/usr/lib/pkgconfig/${LIB}.pc
done
# linker scripts and .pc files for non-wide ncurses
for LIB in ncurses form panel menu ; do
echo "INPUT(-l${LIB}w)" > $PKG/usr/lib/lib${LIB}.so
ln -s ${LIB}w.pc $PKG/usr/lib/pkgconfig/${LIB}.pc
done
# provided by contrib/foot-terminfo
rm -r $PKG/usr/share/terminfo/f/foot{,-direct}
# provided by contrib/foot-terminfo
rm -r $PKG/usr/share/terminfo/f/foot{,-direct}
# linker script for the curses library
echo "INPUT(-lncursesw)" > $PKG/usr/lib/libcursesw.so
ln -s libncurses.so $PKG/usr/lib/libcurses.so
# linker script for the curses library
echo "INPUT(-lncursesw)" > $PKG/usr/lib/libcursesw.so
ln -s libncurses.so $PKG/usr/lib/libcurses.so
}

View File

@ -10,22 +10,22 @@ release=1
source=(https://github.com/$name-build/$name/archive/v$version/$name-v$version.tar.gz)
build() {
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
# prt-get isinst bash-completion && \
# install -m644 -D $name-$version/misc/bash-completion \
# $PKG/usr/share/bash-completion/completions/ninja
# prt-get isinst bash-completion && \
# install -m644 -D $name-$version/misc/bash-completion \
# $PKG/usr/share/bash-completion/completions/ninja
# prt-get isinst zsh && install -m644 -D $name-$version/misc/zsh-completion \
# $PKG/usr/share/zsh/site-functions/_ninja
# prt-get isinst zsh && install -m644 -D $name-$version/misc/zsh-completion \
# $PKG/usr/share/zsh/site-functions/_ninja
install -m644 -D $name-$version/misc/ninja.vim \
$PKG/usr/share/vim/vimfiles/syntax/ninja.vim
install -m644 -D $name-$version/misc/ninja.vim \
$PKG/usr/share/vim/vimfiles/syntax/ninja.vim
}

View File

@ -6,28 +6,28 @@ name=openssl
version=3.1.2
release=1
source=(https://www.openssl.org/source/$name-$version.tar.gz
mksslcert.sh)
mksslcert.sh)
build() {
cd $name-$version
cd $name-$version
./config \
--prefix=/usr \
--libdir=lib \
--openssldir=/etc/ssl \
enable-ec_nistp_64_gcc_128 enable-camellia \
enable-seed enable-rfc3779 \
no-mdc2 no-ec2m no-sm2 no-sm4 \
shared \
threads \
zlib
./config \
--prefix=/usr \
--libdir=lib \
--openssldir=/etc/ssl \
enable-ec_nistp_64_gcc_128 enable-camellia \
enable-seed enable-rfc3779 \
no-mdc2 no-ec2m no-sm2 no-sm4 \
shared \
threads \
zlib
sed -i "s|-O3|$CFLAGS|" Makefile
sed -i "s|-O3|$CFLAGS|" Makefile
make depend
make
make MANSUFFIX=ssl DESTDIR=$PKG install_sw install_ssldirs install_man_docs
make depend
make
make MANSUFFIX=ssl DESTDIR=$PKG install_sw install_ssldirs install_man_docs
find $PKG -name "*fips*" -delete
install -D -m 755 $SRC/mksslcert.sh $PKG/usr/bin/mksslcert
find $PKG -name "*fips*" -delete
install -D -m 755 $SRC/mksslcert.sh $PKG/usr/bin/mksslcert
}

View File

@ -8,8 +8,9 @@ release=1
source=(https://crux.nu/files/distfiles/$name-$version.tar.xz)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
}

View File

@ -9,11 +9,11 @@ release=1
source=(https://mj.ucw.cz/download/linux/pci/$name-$version.tar.gz)
build() {
cd $name-$version
cd $name-$version
local CONF="ZLIB=no DESTDIR=$PKG PREFIX=/usr"
local CONF="ZLIB=no DESTDIR=$PKG PREFIX=/usr"
make -j1 $CONF OPT="$CFLAGS" SHARED=yes install install-lib
make clean
make -j1 $CONF OPT="$CFLAGS" SHARED=no install install-lib
make -j1 $CONF OPT="$CFLAGS" SHARED=yes install install-lib
make clean
make -j1 $CONF OPT="$CFLAGS" SHARED=no install install-lib
}

View File

@ -9,24 +9,24 @@ source=(https://distfiles.ariadne.space/pkgconf/pkgconf-$version.tar.xz
i686-pc-linux-gnu.personality x86_64-pc-linux-gnu.personality)
build() {
meson setup build $name-$version \
--prefix=/usr \
--buildtype=plain \
--wrap-mode=nodownload \
-D b_lto=true \
-D b_pie=true \
-D tests=disabled
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
meson setup build $name-$version \
--prefix=/usr \
--buildtype=plain \
--wrap-mode=nodownload \
-D b_lto=true \
-D b_pie=true \
-D tests=disabled
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
install -Dt $PKG/usr/share/pkgconfig/personality.d -m644 \
i686-pc-linux-gnu.personality \
x86_64-pc-linux-gnu.personality
ln -s pkgconf $PKG/usr/bin/i686-pc-linux-gnu-pkg-config
ln -s pkgconf $PKG/usr/bin/x86_64-pc-linux-gnu-pkg-config
ln -s pkgconf $PKG/usr/bin/pkg-config
install -Dt $PKG/usr/share/pkgconfig/personality.d -m644 \
i686-pc-linux-gnu.personality \
x86_64-pc-linux-gnu.personality
ln -s pkgconf $PKG/usr/bin/i686-pc-linux-gnu-pkg-config
ln -s pkgconf $PKG/usr/bin/x86_64-pc-linux-gnu-pkg-config
ln -s pkgconf $PKG/usr/bin/pkg-config
ln -s pkgconf.1 $PKG/usr/share/man/man1/pkg-config.1
ln -s pkgconf.1 $PKG/usr/share/man/man1/pkg-config.1
rm -rf $PKG/usr/share/doc
rm -rf $PKG/usr/share/doc
}

View File

@ -9,6 +9,6 @@ release=1
source=(https://crux.nu/files/$name-$version.tar.xz)
build () {
cd $name-$version
make DESTDIR=$PKG install
cd $name-$version
make DESTDIR=$PKG install
}

View File

@ -7,23 +7,24 @@ version=1.6
release=3
source=(https://crux.nu/files/tools/ports/$name-$version.tar.gz
core.pub opt.pub xorg.pub compat-32.pub contrib.pub
core.rsync opt.rsync xorg.rsync
compat-32.rsync.inactive contrib.rsync.inactive)
core.pub opt.pub xorg.pub compat-32.pub contrib.pub
core.rsync opt.rsync xorg.rsync
compat-32.rsync.inactive contrib.rsync.inactive)
build () {
cd $name-$version
make
make DESTDIR=$PKG MANDIR=/usr/share/man install
cd $name-$version
install -m 0644 $SRC/core.rsync $PKG/etc/ports
install -m 0644 $SRC/opt.rsync $PKG/etc/ports
install -m 0644 $SRC/xorg.rsync $PKG/etc/ports
install -m 0644 $SRC/compat-32.rsync.inactive $PKG/etc/ports
install -m 0644 $SRC/contrib.rsync.inactive $PKG/etc/ports
install -m 0644 $SRC/core.pub $PKG/etc/ports
install -m 0644 $SRC/opt.pub $PKG/etc/ports
install -m 0644 $SRC/xorg.pub $PKG/etc/ports
install -m 0644 $SRC/compat-32.pub $PKG/etc/ports
install -m 0644 $SRC/contrib.pub $PKG/etc/ports
make
make DESTDIR=$PKG MANDIR=/usr/share/man install
install -m 0644 $SRC/core.rsync $PKG/etc/ports
install -m 0644 $SRC/opt.rsync $PKG/etc/ports
install -m 0644 $SRC/xorg.rsync $PKG/etc/ports
install -m 0644 $SRC/compat-32.rsync.inactive $PKG/etc/ports
install -m 0644 $SRC/contrib.rsync.inactive $PKG/etc/ports
install -m 0644 $SRC/core.pub $PKG/etc/ports
install -m 0644 $SRC/opt.pub $PKG/etc/ports
install -m 0644 $SRC/xorg.pub $PKG/etc/ports
install -m 0644 $SRC/compat-32.pub $PKG/etc/ports
install -m 0644 $SRC/contrib.pub $PKG/etc/ports
}

View File

@ -7,30 +7,30 @@ name=procps
version=4.0.3
release=1
source=(http://downloads.sourceforge.net/project/procps-ng/Production/$name-ng-$version.tar.xz
sysctl.conf)
sysctl.conf)
build() {
cd $name-ng-$version
cd $name-ng-$version
export LINGUAS=' '
export LINGUAS=' '
./configure \
--prefix=/usr \
--sbindir=/sbin \
--libdir=/usr/lib \
--sysconfdir=/etc \
--disable-nls \
--disable-kill \
--disable-modern-top
./configure \
--prefix=/usr \
--sbindir=/sbin \
--libdir=/usr/lib \
--sysconfdir=/etc \
--disable-nls \
--disable-kill \
--disable-modern-top
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
install -d $PKG/{bin,lib,etc}
mv $PKG/usr/bin/{ps,pidof} $PKG/bin/
mv $PKG/usr/lib/libproc2.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/lib/libproc2.so.0) $PKG/usr/lib/libproc2.so
install -m 0644 $SRC/sysctl.conf $PKG/etc/sysctl.conf
install -d $PKG/{bin,lib,etc}
mv $PKG/usr/bin/{ps,pidof} $PKG/bin/
mv $PKG/usr/lib/libproc2.so.* $PKG/lib
ln -sf ../../lib/$(readlink $PKG/lib/libproc2.so.0) $PKG/usr/lib/libproc2.so
install -m 0644 $SRC/sysctl.conf $PKG/etc/sysctl.conf
rm -r $PKG/usr/share/doc
rm -r $PKG/usr/share/doc
}

View File

@ -6,16 +6,16 @@ name=prt-get
version=5.19.6
release=1
source=(http://crux.nu/files/prt-get-$version.tar.xz
prt-get.conf prt-get.aliases)
prt-get.conf prt-get.aliases)
build() {
cd ${name}-${version}
cd ${name}-${version}
./configure --prefix=/usr
make
make DESTDIR=$PKG install
./configure --prefix=/usr
make
make DESTDIR=$PKG install
install -m 644 $SRC/prt-get.{conf,aliases} $PKG/etc/
install -d $PKG/var/lib/pkg
touch $PKG/var/lib/pkg/prt-get.locker
install -m 644 $SRC/prt-get.{conf,aliases} $PKG/etc/
install -d $PKG/var/lib/pkg
touch $PKG/var/lib/pkg/prt-get.locker
}

View File

@ -9,10 +9,13 @@ release=1
source=(http://downloads.sourceforge.net/project/$name/$name/$name-$version.tar.xz)
build() {
cd $name-$version
export LINGUAS=' '
./configure --prefix=/usr --disable-nls
make
make DESTDIR=$PKG install
rm $PKG/usr/bin/pstree.x11
cd $name-$version
export LINGUAS=' '
./configure --prefix=/usr --disable-nls
make
make DESTDIR=$PKG install
rm $PKG/usr/bin/pstree.x11
}

View File

@ -8,17 +8,17 @@ release=2
source=(inittab rc rc.modules rc.single rc.multi rc.local rc.fix rc.shutdown rc.conf)
build() {
install -d $PKG/etc/rc.d
install -m 644 inittab $PKG/etc
install -m 755 rc $PKG/etc
install -m 755 rc.modules $PKG/etc
install -m 755 rc.single $PKG/etc
install -m 755 rc.multi $PKG/etc
install -m 755 rc.local $PKG/etc
install -m 755 rc.fix $PKG/etc
install -m 755 rc.shutdown $PKG/etc
install -m 644 rc.conf $PKG/etc
install -d $PKG/var/log $PKG/var/lib/urandom
touch $PKG/var/log/boot $PKG/var/lib/urandom/seed
chmod 640 $PKG/var/log/boot $PKG/var/lib/urandom/seed
install -d $PKG/etc/rc.d
install -m 644 inittab $PKG/etc
install -m 755 rc $PKG/etc
install -m 755 rc.modules $PKG/etc
install -m 755 rc.single $PKG/etc
install -m 755 rc.multi $PKG/etc
install -m 755 rc.local $PKG/etc
install -m 755 rc.fix $PKG/etc
install -m 755 rc.shutdown $PKG/etc
install -m 644 rc.conf $PKG/etc
install -d $PKG/var/log $PKG/var/lib/urandom
touch $PKG/var/log/boot $PKG/var/lib/urandom/seed
chmod 640 $PKG/var/log/boot $PKG/var/lib/urandom/seed
}

View File

@ -6,18 +6,18 @@ name=rdate
version=0.12
release=1
source=(https://github.com/leahneukirchen/outils/archive/v$version/outils-$version.tar.gz
ntpleaps.patch rdate)
ntpleaps.patch rdate)
build() {
cd outils-$version
cd outils-$version
# FS1462
patch -p0 -d src/usr.sbin/rdate -i $SRC/ntpleaps.patch
# FS1462
patch -p0 -d src/usr.sbin/rdate -i $SRC/ntpleaps.patch
make PREFIX=/usr src/usr.sbin/rdate/rdate
make PREFIX=/usr src/usr.sbin/rdate/rdate
install -d $PKG/{usr/{bin,share/man/man8},etc/cron/daily}
install -m 0755 src/usr.sbin/rdate/rdate $PKG/usr/bin
install -m 0644 src/usr.sbin/rdate/rdate.8 $PKG/usr/share/man/man8
install -m 0755 $SRC/rdate $PKG/etc/cron/daily
install -d $PKG/{usr/{bin,share/man/man8},etc/cron/daily}
install -m 0755 src/usr.sbin/rdate/rdate $PKG/usr/bin
install -m 0644 src/usr.sbin/rdate/rdate.8 $PKG/usr/share/man/man8
install -m 0755 $SRC/rdate $PKG/etc/cron/daily
}

View File

@ -7,22 +7,22 @@ name=readline
version=8.2.1
release=1
source=(http://ftpmirror.gnu.org/gnu/$name/$name-${version:0:3}.tar.gz
$name-$version.patch.gz inputrc)
$name-$version.patch.gz inputrc)
build() {
cd $name-${version:0:3}
cd $name-${version:0:3}
gunzip -c $SRC/$name-$version.patch.gz | patch -p0
gunzip -c $SRC/$name-$version.patch.gz | patch -p0
./configure --prefix=/usr
make -j1 SHLIB_LIBS=-lncurses
make -j1 DESTDIR=$PKG install
./configure --prefix=/usr
make -j1 SHLIB_LIBS=-lncurses
make -j1 DESTDIR=$PKG install
install -d $PKG/lib
mv $PKG/usr/lib/lib*.so.* $PKG/lib
ln -sf ../../lib/libhistory.so.${version:0:3} $PKG/usr/lib/libhistory.so
ln -sf ../../lib/libreadline.so.${version:0:3} $PKG/usr/lib/libreadline.so
install -d $PKG/lib
mv $PKG/usr/lib/lib*.so.* $PKG/lib
ln -sf ../../lib/libhistory.so.${version:0:3} $PKG/usr/lib/libhistory.so
ln -sf ../../lib/libreadline.so.${version:0:3} $PKG/usr/lib/libreadline.so
install -D -m 644 $SRC/inputrc $PKG/etc/inputrc
rm -r $PKG/usr/share/{doc,info}
install -D -m 644 $SRC/inputrc $PKG/etc/inputrc
rm -r $PKG/usr/share/{doc,info}
}

View File

@ -8,21 +8,22 @@ release=1
source=(https://github.com/rhash/RHash/archive/v$version/$name-$version.tar.gz)
build() {
cd RHash-$version
cd RHash-$version
sed -i -e '/^INSTALL_SHARED/s/644/755/' librhash/Makefile
sed -i -e '/^INSTALL_SHARED/s/644/755/' librhash/Makefile
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-lib-{static,shared} \
--extra-cflags="$CFLAGS" \
--extra-ldflags="$LDFLAGS"
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-lib-{static,shared} \
--extra-cflags="$CFLAGS" \
--extra-ldflags="$LDFLAGS"
make
make test test-lib
make
make test test-lib
make DESTDIR=$PKG install
make -C librhash DESTDIR=$PKG install-lib-headers install-so-link
install -Dm0644 -o root -g root dist/librhash.pc \
$PKG/usr/lib/pkgconfig/librhash.pc
make DESTDIR=$PKG install
make -C librhash DESTDIR=$PKG install-lib-headers install-so-link
install -Dm0644 -o root -g root dist/librhash.pc \
$PKG/usr/lib/pkgconfig/librhash.pc
}

View File

@ -7,25 +7,25 @@ name=rsync
version=3.2.7
release=1
source=(https://download.samba.org/pub/rsync/$name-$version.tar.gz \
rsyncd.conf rsyncd rsync.driver)
rsyncd.conf rsyncd rsync.driver)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix=/usr \
--with-rsh=ssh \
--with-included-zlib=no \
--with-included-popt=yes \
--disable-xxhash \
--disable-lz4
./configure \
--prefix=/usr \
--with-rsh=ssh \
--with-included-zlib=no \
--with-included-popt=yes \
--disable-xxhash \
--disable-lz4
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
install -d $PKG/etc/{rc.d,ports/drivers} $PKG/var/log
install -m 755 $SRC/rsyncd $PKG/etc/rc.d
install -m 644 $SRC/rsyncd.conf $PKG/etc
install -m 755 $SRC/rsync.driver $PKG/etc/ports/drivers/rsync
touch $PKG/var/log/rsyncd.log
install -d $PKG/etc/{rc.d,ports/drivers} $PKG/var/log
install -m 755 $SRC/rsyncd $PKG/etc/rc.d
install -m 644 $SRC/rsyncd.conf $PKG/etc
install -m 755 $SRC/rsync.driver $PKG/etc/ports/drivers/rsync
touch $PKG/var/log/rsyncd.log
}

View File

@ -9,12 +9,12 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
./configure \
--prefix=/usr \
--exec-prefix=/ \
--disable-nls
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
cd $name-$version
./configure \
--prefix=/usr \
--exec-prefix=/ \
--disable-nls
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/info
}

View File

@ -6,17 +6,17 @@ name=signify
version=0.12
release=1
source=(https://github.com/leahneukirchen/outils/archive/v$version/outils-$version.tar.gz
cruxify.patch)
cruxify.patch)
build() {
cd outils-$version
cd outils-$version
patch -p0 -i $SRC/cruxify.patch
patch -p0 -i $SRC/cruxify.patch
export CFLAGS+=' -DSIGNIFYROOT=\"/etc/ports\"'
make PREFIX=/usr src/usr.bin/signify/signify
export CFLAGS+=' -DSIGNIFYROOT=\"/etc/ports\"'
make PREFIX=/usr src/usr.bin/signify/signify
install -d $PKG/usr/{bin,share/man/man1}
install -m 0755 src/usr.bin/signify/signify $PKG/usr/bin
install -m 0644 src/usr.bin/signify/signify.1 $PKG/usr/share/man/man1
install -d $PKG/usr/{bin,share/man/man1}
install -m 0755 src/usr.bin/signify/signify $PKG/usr/bin
install -m 0644 src/usr.bin/signify/signify.1 $PKG/usr/share/man/man1
}

View File

@ -11,13 +11,13 @@ _version=$(printf "%i%.2i%.2i%.2i" ${version//./ })
source=(https://www.sqlite.org/2023/sqlite-autoconf-${_version}.tar.gz)
build() {
cd sqlite-autoconf-${_version}
cd sqlite-autoconf-${_version}
CFLAGS="-DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 \
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1 \
-DSQLITE_ENABLE_FTS3=1 $CFLAGS" \
./configure --prefix=/usr --enable-readline
CFLAGS="-DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 \
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1 \
-DSQLITE_ENABLE_FTS3=1 $CFLAGS" \
./configure --prefix=/usr --enable-readline
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
}

View File

@ -8,9 +8,9 @@ release=1
source=(start-stop-daemon.c start-stop-daemon.pod crux-patch.diff makefile)
build () {
patch -p1 -i crux-patch.diff
make
install -d $PKG/{sbin,usr/share/man/man8}
install -m 755 $name $PKG/sbin/
install -m 644 $name.8 $PKG/usr/share/man/man8/
patch -p1 -i crux-patch.diff
make
install -d $PKG/{sbin,usr/share/man/man8}
install -m 755 $name $PKG/sbin/
install -m 644 $name.8 $PKG/usr/share/man/man8/
}

View File

@ -7,25 +7,25 @@ name=sudo
version=1.9.14p3
release=1
source=(https://www.sudo.ws/dist/$name-$version.tar.gz
$name.pam)
$name.pam)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--with-logfac=auth \
--with-vardir=/var/lib/sudo \
--with-rundir=/run/sudo \
--with-sendmail=/usr/sbin/sendmail \
--disable-nls
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--with-logfac=auth \
--with-vardir=/var/lib/sudo \
--with-rundir=/run/sudo \
--with-sendmail=/usr/sbin/sendmail \
--disable-nls
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
# PAM service file
install -D -m 0644 $SRC/$name.pam $PKG/etc/pam.d/$name
# PAM service file
install -D -m 0644 $SRC/$name.pam $PKG/etc/pam.d/$name
rm -r $PKG/usr/share/doc $PKG/run
rm -r $PKG/usr/share/doc $PKG/run
}

View File

@ -8,9 +8,9 @@ release=1
source=(https://github.com/linux-ras/sysfsutils/archive/v$version/$name-$version.tar.gz)
build() {
cd $name-$version
./autogen
./configure --prefix=/usr
make
make DESTDIR=$PKG install
cd $name-$version
./autogen
./configure --prefix=/usr
make
make DESTDIR=$PKG install
}

View File

@ -6,30 +6,30 @@ name=sysklogd
version=2.5.1
release=1
source=(https://github.com/troglobit/sysklogd/releases/download/v$version/$name-$version.tar.gz \
rotatelog syslog syslog.conf sysklogd)
rotatelog syslog syslog.conf sysklogd)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--runstatedir=/run \
--without-logger
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--runstatedir=/run \
--without-logger
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
install -d $PKG/etc/{cron/weekly,rc.d,syslog.d}
install -m 755 $SRC/rotatelog $PKG/usr/sbin
install -m 755 $SRC/syslog $PKG/etc/cron/weekly
install -m 644 $SRC/syslog.conf $PKG/etc
install -m 755 $SRC/sysklogd $PKG/etc/rc.d
install -d $PKG/etc/{cron/weekly,rc.d,syslog.d}
install -m 755 $SRC/rotatelog $PKG/usr/sbin
install -m 755 $SRC/syslog $PKG/etc/cron/weekly
install -m 644 $SRC/syslog.conf $PKG/etc
install -m 755 $SRC/sysklogd $PKG/etc/rc.d
install -d $PKG/var/log
touch $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
chmod 640 $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
install -d $PKG/var/log
touch $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
chmod 640 $PKG/var/log/{messages,auth,mail,cron,kernel,debug}
rm -r $PKG/usr/share/doc
rm -r $PKG/usr/share/doc
}

View File

@ -8,27 +8,27 @@ release=1
source=(https://github.com/slicer69/sysvinit/releases/download/$version/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
find man -type d -name '??' -exec rm -r {} +
find man -type d -name '??' -exec rm -r {} +
make
make ROOT=$PKG install
make
make ROOT=$PKG install
# Provided by util-linux
rm $PKG/usr/bin/{last,lastb,mesg,utmpdump,wall}
rm $PKG/usr/share/man/man1/{last,lastb,mesg,utmpdump,wall}.1
# Provided by util-linux
rm $PKG/usr/bin/{last,lastb,mesg,utmpdump,wall}
rm $PKG/usr/share/man/man1/{last,lastb,mesg,utmpdump,wall}.1
# Provided by procps
rm $PKG/bin/pidof
rm $PKG/usr/share/man/man8/pidof.8
# Provided by procps
rm $PKG/bin/pidof
rm $PKG/usr/share/man/man8/pidof.8
# Provided by e2fsprogs
rm $PKG/sbin/logsave
rm $PKG/usr/share/man/man8/logsave.8
# Provided by e2fsprogs
rm $PKG/sbin/logsave
rm $PKG/usr/share/man/man8/logsave.8
install -d $PKG/var/log
touch $PKG/var/log/wtmp
touch $PKG/var/log/btmp
chmod 0600 $PKG/var/log/btmp
install -d $PKG/var/log
touch $PKG/var/log/wtmp
touch $PKG/var/log/btmp
chmod 0600 $PKG/var/log/btmp
}

View File

@ -8,17 +8,17 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix= \
--libexec=/usr/lib/tar \
--mandir=/usr/share/man \
--disable-nls \
FORCE_UNSAFE_CONFIGURE=1
./configure \
--prefix= \
--libexec=/usr/lib/tar \
--mandir=/usr/share/man \
--disable-nls \
FORCE_UNSAFE_CONFIGURE=1
make
make DESTDIR=$PKG install
make
make DESTDIR=$PKG install
rm -r $PKG/share
rm -r $PKG/share
}

View File

@ -8,9 +8,9 @@ release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share
}

View File

@ -8,15 +8,15 @@ release=1
source=(https://data.iana.org/time-zones/releases/tzdb-$version.tar.lz)
build() {
cd tzdb-$version
cd tzdb-$version
make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
make DESTDIR=$PKG install
make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
make DESTDIR=$PKG install
# provided by man-pages
rm -r $PKG/usr/share/man/man{5,8}
# provided by man-pages
rm -r $PKG/usr/share/man/man{5,8}
# conflict with glibc
rm $PKG/etc/localtime
rmdir $PKG/etc
# conflict with glibc
rm $PKG/etc/localtime
rmdir $PKG/etc
}

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