dot

packages and services management
Log | Files | Refs | README

commit 4ddb7313c5ff1f40204195e249e54a4b4261f61a
parent 5cbb3dafa0b7192209e0fe5e9fc3243820ae3981
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu,  1 Mar 2018 20:37:13 +0100

symlinks for repeated recipes

Diffstat:
Apack/build/autotools | 10++++++++++
Apack/build/gmake | 13+++++++++++++
Apack/build/make | 4++++
Tpack/dash/build | 0
Tpack/dmenu/build | 0
Tpack/entr/build | 0
Tpack/farbfeld/build | 0
Mpack/git/build | 4+---
Tpack/iomenu/build | 0
Tpack/libav/build | 0
Mpack/libbearssl/build | 13++++++++++++-
Apack/libevent/build | 13+++++++++++++
Apack/libevent/tar | 1+
Tpack/liblz4/build | 0
Tpack/liblzma/build | 0
Mpack/libmusl/build | 7+------
Tpack/libopus/build | 0
Tpack/libressl/build | 0
Mpack/libvpx/build | 4+---
Mpack/man-openbsd/tar | 2+-
Tpack/mblaze/build | 0
Mpack/minilisp/build | 2+-
Tpack/miniwi/build | 0
Mpack/mpop/build | 3+--
Mpack/msmtp/build | 1-
Mpack/mupdf/build | 0
Mpack/mupdf/tar | 2+-
Dpack/openssh/build | 8--------
Mpack/opus-tools/build | 4+---
Tpack/radare2/build | 0
Mpack/reflex/build | 3+--
Tpack/rsync/build | 0
Mpack/sfeed/build | 1+
Tpack/sup/build | 0
Tpack/tcpdump/build | 0
Mpack/tinc/build | 4++--
Mpack/ucspi-tcp/build | 3+--
Dpack/xinetd/build | 8--------
Dpack/xinetd/git | 1-
39 files changed, 66 insertions(+), 45 deletions(-)

diff --git a/pack/build/autotools b/pack/build/autotools @@ -0,0 +1,10 @@ +#!/bin/sh -ex + +./configure \ + --prefix="$OPT" \ + --sbindir="$OPT/bin" \ + --sysconfdir="$HOME/.config" \ + --localstatedir="$HOME/var" \ + --syslibdir="$OPT"/lib + +exec "$PACK/build/gmake" diff --git a/pack/build/gmake b/pack/build/gmake @@ -0,0 +1,13 @@ +#!/bin/sh -ex + +case "$(uname)" in +(Linux) + make="make" + ;; +(*BSD) + make="gmake" + ;; +esac + +$make +$make PREFIX="$OPT" install diff --git a/pack/build/make b/pack/build/make @@ -0,0 +1,4 @@ +#!/bin/sh -ex + +make +make PREFIX="$OPT" install diff --git a/pack/dash/build b/pack/dash/build diff --git a/pack/dmenu/build b/pack/dmenu/build diff --git a/pack/entr/build b/pack/entr/build diff --git a/pack/farbfeld/build b/pack/farbfeld/build diff --git a/pack/git/build b/pack/git/build @@ -4,6 +4,4 @@ --prefix="$OPT" \ --without-tcltk -case "$(uname)" in (*BSD) make='gmake' ;; (*) make='make' ;; esac - -$make install +exec "$PACK/build/make" diff --git a/pack/iomenu/build b/pack/iomenu/build diff --git a/pack/libav/build b/pack/libav/build diff --git a/pack/libbearssl/build b/pack/libbearssl/build @@ -1,4 +1,15 @@ -case $(uname) in (Linux) make ;; (*BSD) gmake ;; esac +#!/bin/sh -ex + +case $(uname) in +(Linux) + make="make" + ;; +(*BSD) + make="gmake" + ;; +esac + +$make mkdir -p "$OPT/bin" "$OPT/lib" "$OPT/include" diff --git a/pack/libevent/build b/pack/libevent/build @@ -0,0 +1,13 @@ +#!/bin/sh -e + +pattern='OPENSSL_VERSION_NUMBER .*L$' + +./configure --prefix="$OPT" --without-openssl + +grep -rl "$pattern" | while IFS='' read -r file +do + sed "s/$pattern.*/& || defined(LIBRESSL_VERSION_NUMBER)/" "$file" \ + > "$file.sed" +done + +make install diff --git a/pack/libevent/tar b/pack/libevent/tar @@ -0,0 +1 @@ +https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz diff --git a/pack/liblz4/build b/pack/liblz4/build diff --git a/pack/liblzma/build b/pack/liblzma/build diff --git a/pack/libmusl/build b/pack/libmusl/build @@ -5,9 +5,4 @@ export CC="$CC -L$PACKROOT/lib -isystem $PACKROOT/include" [ -n "$CROSS_COMPILE" ] && CONFFLAGS="$CONFFLAGS --host=$CROSS_COMPILE" -./configure \ - --prefix="$OPT" \ - --syslibdir="$OPT"/lib - -make -make PREFIX="$OPT" install +exec "$PACK/build/autotools" diff --git a/pack/libopus/build b/pack/libopus/build diff --git a/pack/libressl/build b/pack/libressl/build diff --git a/pack/libvpx/build b/pack/libvpx/build @@ -6,6 +6,4 @@ --disable-unit-tests \ --disable-webm-io -case "$(uname)" in (*BSD ) make='gmake' ;; (*) make='make' ;; esac - -$make install +exec "$PACK/build/gmake" diff --git a/pack/man-openbsd/tar b/pack/man-openbsd/tar @@ -1 +1 @@ -http://www.freebsd.org/cgi/man.cgi?apropos=2&manpath=OpenBSD+6.1.tar.gz +https://www.freebsd.org/cgi/man.cgi?apropos=2&manpath=OpenBSD+6.2.tar.gz diff --git a/pack/mblaze/build b/pack/mblaze/build diff --git a/pack/minilisp/build b/pack/minilisp/build @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh -ex make diff --git a/pack/miniwi/build b/pack/miniwi/build diff --git a/pack/mpop/build b/pack/mpop/build @@ -8,5 +8,4 @@ export libssl_LIBS="-L$PACKROOT/lib -lssl -lcrypto" --with-tls='openssl' make - -make PREFIX="$OPT" install +make install diff --git a/pack/msmtp/build b/pack/msmtp/build @@ -9,6 +9,5 @@ export libssl_LIBS="-L$PACKROOT/lib -lssl -lcrypto" --with-tls=openssl make -make PREFIX="$OPT" install ln -s "$OPT/bin/msmtp" "$OPT/bin/sendmail" diff --git a/pack/mupdf/build b/pack/mupdf/build diff --git a/pack/mupdf/tar b/pack/mupdf/tar @@ -1 +1 @@ -https://mupdf.com/downloads/mupdf-1.11-source.tar.gz +https://mupdf.com/downloads/mupdf-1.12.0-source.tar.xz diff --git a/pack/openssh/build b/pack/openssh/build @@ -1,8 +0,0 @@ -#!/bin/sh -ex - -./configure \ - --prefix="$OPT" \ - --sbindir="$OPT/bin" - -make install - diff --git a/pack/opus-tools/build b/pack/opus-tools/build @@ -14,6 +14,4 @@ export FLAC_CFLAGS="-I'$PACKROOT/include'" --with-opus="$PACKROOT" \ --prefix="$OPT" -case $(uname) in (*BSD) make="gmake" ;; (*) make='make' ;; esac - -$make install +exec "$BUILD/gmake" diff --git a/pack/radare2/build b/pack/radare2/build diff --git a/pack/reflex/build b/pack/reflex/build @@ -1,7 +1,6 @@ #!/bin/sh -ex -./configure \ - --prefix="$OPT" +./configure --prefix="$OPT" make install diff --git a/pack/rsync/build b/pack/rsync/build diff --git a/pack/sfeed/build b/pack/sfeed/build @@ -2,5 +2,6 @@ cp "$PKG/sfeed_twtxt.c" "$SRC" make MANPREFIX="$OPT/share/man" PREFIX="$OPT" install + make BIN='sfeed_twtxt' cp "$SRC/sfeed_twtxt" "$OPT/bin/sfeed_twtxt" diff --git a/pack/sup/build b/pack/sup/build diff --git a/pack/tcpdump/build b/pack/tcpdump/build diff --git a/pack/tinc/build b/pack/tinc/build @@ -1,7 +1,5 @@ #!/bin/sh -ex -case "$(uname)" in (*BSD) make=gmake ;; (*) make=make ;; esac - ./configure \ --prefix="$OPT" \ --sbindir="$OPT/bin" \ @@ -11,4 +9,6 @@ case "$(uname)" in (*BSD) make=gmake ;; (*) make=make ;; esac --disable-readline \ --disable-curses +case "$(uname)" in (*BSD) make=gmake ;; (*) make=make ;; esac + $make install diff --git a/pack/ucspi-tcp/build b/pack/ucspi-tcp/build @@ -2,10 +2,9 @@ echo gcc -O2 -include /usr/include/errno.h > conf-cc -mkdir -p "$OPT/bin" - make +mkdir -p "$OPT/bin" cp \ tcpserver tcprules tcprulescheck argv0 recordio tcpclient who@ date@ \ finger@ http@ tcpcat mconnect mconnect-io addcr delcr fixcrio \ diff --git a/pack/xinetd/build b/pack/xinetd/build @@ -1,8 +0,0 @@ -#!/bin/sh -e - -./configure \ - --prefix="$OPT" \ - --sbindir="$OPT/bin" \ - --mandir="$OPT/share/man" - -make install diff --git a/pack/xinetd/git b/pack/xinetd/git @@ -1 +0,0 @@ -git://github.com/xinetd-org/xinetd