dot

packages and services management
Log | Files | Refs | README

commit 3020f1b95a10938c74e153dbf1a3e0a87d796433
parent b6ff78dafe63f8ad2c1bebdac7140017475057c8
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 12 Aug 2018 19:10:16 +0200

pack: more packages

Diffstat:
Mbin/pack-add | 2+-
Mbin/pack-get | 19+++++++++++++++----
Apack/bmake/build | 4++++
Apack/bmake/tar | 1+
Apack/bmake/version | 1+
Apack/geomyidae/git | 1+
Mpack/geomyidae/version | 1+
Apack/gopherproxy-c/build | 5+++++
Apack/gopherproxy-c/dep | 1+
Apack/gopherproxy-c/git | 1+
Apack/gopherproxy-c/version | 1+
Mpack/libcurses/build | 2+-
Apack/openiked/build | 4++++
Apack/openiked/git | 1+
Apack/openiked/version | 1+
Mpack/sacc/config.mk | 6+++---
Mpack/tor/build | 4++--
17 files changed, 44 insertions(+), 11 deletions(-)

diff --git a/bin/pack-add b/bin/pack-add @@ -8,7 +8,7 @@ test -d "/opt/$1/$VERSION" || pack-build "$1" || { rm -rf "/opt/$1/$VERSION" exit 1 } -printf '\033[1m[ installing %s ]\033[m\n' "$1" +printf '\033[1m[ installing %s version %s ]\033[m\n' "$1" "$VERSION" ln -sf "$VERSION" "/opt/$1/$VERSION/cur" mv -f "/opt/$1/$VERSION/cur" "/opt/$1" cd "/opt/$1/cur" diff --git a/bin/pack-get b/bin/pack-get @@ -1,7 +1,18 @@ #!/bin/sh -e # get a package's source from either tar, git, cvs -printf '\033[1m[ downloading %s ]\033[m\n' "$1" -test -f "/etc/pack/$1/tar" && exec pack-tar "$1" -test -f "/etc/pack/$1/git" && exec pack-git "$1" -test -f "/etc/pack/$1/cvs" && exec pack-cvs "$1" +export VERSION=$(tail -n 1 /etc/pack/$1/version) + +printf '\033[1m[ downloading %s version ]\033[m\n' "$1" "$VERSION" + +case $VERSION in +(git) + test -f "/etc/pack/$1/git" && exec pack-git "$1" + ;; +(cvs) + test -f "/etc/pack/$1/cvs" && exec pack-cvs "$1" + ;; +(*) + test -f "/etc/pack/$1/tar" && exec pack-tar "$1" + ;; +esac diff --git a/pack/bmake/build b/pack/bmake/build @@ -0,0 +1,4 @@ +#!/bin/sh -ex + +./configure --prefix="$PREFIX" +gmake diff --git a/pack/bmake/tar b/pack/bmake/tar @@ -0,0 +1 @@ +https://devio.us/~bcallah/make/make-%s.tar.gz diff --git a/pack/bmake/version b/pack/bmake/version @@ -0,0 +1 @@ +git diff --git a/pack/geomyidae/git b/pack/geomyidae/git @@ -0,0 +1 @@ +git://bitreich.org/geomyidae/ diff --git a/pack/geomyidae/version b/pack/geomyidae/version @@ -1 +1,2 @@ 0.32 +git diff --git a/pack/gopherproxy-c/build b/pack/gopherproxy-c/build @@ -0,0 +1,5 @@ +#!/bin/sh -ex + +make +mkdir -p "$PREFIX/bin" +cp gopherproxy "$PREFIX/bin" diff --git a/pack/gopherproxy-c/dep b/pack/gopherproxy-c/dep @@ -0,0 +1 @@ +gmake diff --git a/pack/gopherproxy-c/git b/pack/gopherproxy-c/git @@ -0,0 +1 @@ +git://git.codemadness.org/gopherproxy-c diff --git a/pack/gopherproxy-c/version b/pack/gopherproxy-c/version @@ -0,0 +1 @@ +git diff --git a/pack/libcurses/build b/pack/libcurses/build @@ -1,3 +1,3 @@ #!/bin/sh -ex -make prefix="$PREFIX" install +make PREFIX="$PREFIX" install diff --git a/pack/openiked/build b/pack/openiked/build @@ -0,0 +1,4 @@ +#!/bin/sh -ex + +make +make PREFIX="$PREFIX" install diff --git a/pack/openiked/git b/pack/openiked/git @@ -0,0 +1 @@ +git://github.com/reyk/openiked/ diff --git a/pack/openiked/version b/pack/openiked/version @@ -0,0 +1 @@ +git diff --git a/pack/sacc/config.mk b/pack/sacc/config.mk @@ -4,7 +4,7 @@ MANDIR = $(PREFIX)/share/man/man1 # UI type # txt (textual) -UI=txt +#UI=txt # ti (screen-oriented) -#UI=ti -#LIBS=-lcurses +UI=ti +LIBS=-lcurses diff --git a/pack/tor/build b/pack/tor/build @@ -2,6 +2,6 @@ ./configure --prefix="$PREFIX" \ --sbindir="$PREFIX/bin" \ - --with-libevent-dir=/opt/libevent/cur/lib \ - --with-openssl-dir=/opt/libressl/cur/lib + --with-libevent-dir=/opt/libevent/cur \ + --with-openssl-dir=/opt/libressl/cur make install