opendoas

A portable version of the OpenBSD `doas` command
git clone https://pi.duncano.de/git/opendoas.git
Log | Files | Refs | README | LICENSE

commit c05b37be802b4cc77dff49b9effdc6a768a0be48
parent 1200408d46bfd352b568cbb7c6c9cbf7e8584de3
Author: Duncan Overbruck <administrator@duncano.de>
Date:   Mon,  9 May 2016 21:12:31 +0200

Merge pull request #7 from frgm/master

fix configure and add a new target - "uninstall"
Diffstat:
bsd.prog.mk | 8+++++++-
configure | 4++--
2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/bsd.prog.mk b/bsd.prog.mk @@ -29,6 +29,12 @@ install: ${PROG} ${PAM_DOAS} ${MAN} cp -f doas.1 ${DESTDIR}${MANDIR}/man1 cp -f doas.conf.5 ${DESTDIR}${MANDIR}/man5 +uninstall: + rm -f ${DESTDIR}${BINDIR}/${PROG} + rm -f ${DESTDIR}${PAMDIR}/doas + rm -f ${DESTDIR}${MANDIR}/man1/doas.1 + rm -f ${DESTDIR}${MANDIR}/man5/doas.conf.5 + clean: rm -f version.h rm -f libopenbsd.a @@ -40,4 +46,4 @@ clean: -include ${OBJS:.o=.d} ${OPENBSD:.o=.d} -.PHONY: default clean install +.PHONY: default clean install uninstall diff --git a/configure b/configure @@ -91,11 +91,11 @@ if [ -z "$OS" ]; then KERNEL=${REST%%-*} fi -OS_FLAGS="-D__${OS}__" +OS_CFLAGS="-D__${OS}__" case "$OS" in linux) - OS_CFLAGS+=" -D_DEFAULT_SOURCE -D_GNU_SOURCE -DUID_MAX=60000 -DGID_MAX=60000" + OS_CFLAGS="$OS_CFLAGS -D_DEFAULT_SOURCE -D_GNU_SOURCE -DUID_MAX=60000 -DGID_MAX=60000" printf 'CURDIR := .\n' >>$CONFIG_MK printf 'PAM_DOAS = pam.d__doas__linux\n' >>$CONFIG_MK ;;