dot

packages and services management
Log | Files | Refs | README

commit e21b30bd057e8efb237f3bf84325fe759923c32c
parent 0e52d87deaeb34535b08b875beb2183b790eb945
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Fri, 25 Aug 2017 21:59:20 +0200

using package as a package manager for this port tree

Diffstat:
Dpackage.mk | 36------------------------------------
1 file changed, 0 insertions(+), 36 deletions(-)

diff --git a/package.mk b/package.mk @@ -1,36 +0,0 @@ -SRC = ${ROOT}/src/${PACKAGE} -OPT = ${ROOT}/opt/${PACKAGE} -PKG = ${ROOT}/pkg/${PACKAGE} -TMP = ${ROOT}/var/cache/pkg/${PACKAGE} -ETC = ${ROOT}/etc - -install: - cd '${OPT}' && find . -type d -exec mkdir -p '${ROOT}/{}' + - cd '${OPT}' && find . -type f -exec ln -s {} '${ROOT}/{}' + - -opt: ${OPT} -${OPT}: - mkdir -p '${OPT}/bin' '${OPT}/etc' '${OPT}/lib' '${OPT}/include' - mkdir -p '${OPT}/share/man' - -src: ${SRC} -${SRC}: - mkdir -p '${TMP}' - wget -O - '${TAR}' | case '${TAR}' in \ - (*bz2) bunzip2 -d ;; (*gz) gzip -d ;; (*xz) xz -d ;; (*tar) tee ;; \ - esac | tar -xf -C '${TMP}' && mv '${TMP}'/* '$@' - - git clone '${GIT}' '$@' - -remove: - rm -rf '${SRC}' '${OPT}' - find -L '${ROOT}' -type l -exec rm {} + - -dotfiles: - cd '${PKG}' && find . -type d -exec mkdir -p '${ROOT}/{}' + - cd '${PKG}' && find . -type f -exec ln -s {} '${ROOT}/{}' + - -crontab: - mkdir -p '${ETC}' - [ -f '${PKG}/cron' ] && tee -a '${ETC}/crontab' < '${PKG}/cron' - sort -u '${ETC}/crontab' -o '${ETC}/crontab'