Index: head/security/doas/Makefile =================================================================== --- head/security/doas/Makefile (nonexistent) +++ head/security/doas/Makefile (revision 417407) @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= doas +PORTVERSION= 5.9 +CATEGORIES= security + +MAINTAINER= jsmith@resonatingmedia.com +COMMENT= Simple sudo alternative to run commands as another user + +LICENSE= ISCL + +USE_GITHUB= yes +GH_ACCOUNT= slicer69 +GH_PROJECT= doas +GH_TAGNAME= e6f1456 + +BINMODE= 4755 + +SUB_FILES= pkg-message +PLIST_FILES= bin/doas \ + man/man5/doas.conf.5.gz \ + man/man1/doas.1.gz + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/doas.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/doas.conf.5 ${STAGEDIR}${MAN5PREFIX}/man/man5 + +.include Property changes on: head/security/doas/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/doas/distinfo =================================================================== --- head/security/doas/distinfo (nonexistent) +++ head/security/doas/distinfo (revision 417407) @@ -0,0 +1,3 @@ +TIMESTAMP = 1466641283 +SHA256 (slicer69-doas-5.9-e6f1456_GH0.tar.gz) = 304008cfca04b8825393d3cf50b6085842b36c2668fda81d24bf16e56a042c49 +SIZE (slicer69-doas-5.9-e6f1456_GH0.tar.gz) = 10469 Property changes on: head/security/doas/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/doas/files/patch-Makefile =================================================================== --- head/security/doas/files/patch-Makefile (nonexistent) +++ head/security/doas/files/patch-Makefile (revision 417407) @@ -0,0 +1,11 @@ +--- Makefile.orig 2016-06-22 22:59:03 UTC ++++ Makefile +@@ -3,7 +3,7 @@ YC?=yacc + BIN=doas + PREFIX?=/usr/local + OBJECTS=doas.o env.o execvpe.o y.tab.o +-CFLAG+= -DUSE_PAM ++CFLAG+= -DUSE_PAM -DDOAS_CONF=\"${PREFIX}/etc/doas.conf\" + LFLAG+= -lpam + + all: $(OBJECTS) Property changes on: head/security/doas/files/patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/doas/files/patch-doas.c =================================================================== --- head/security/doas/files/patch-doas.c (nonexistent) +++ head/security/doas/files/patch-doas.c (revision 417407) @@ -0,0 +1,11 @@ +--- doas.c.orig 2016-06-22 22:59:03 UTC ++++ doas.c +@@ -324,7 +324,7 @@ main(int argc, char **argv) + int pam_silent = PAM_SILENT; + #endif + +- parseconfig("/usr/local/etc/doas.conf", 1); ++ parseconfig(DOAS_CONF, 1); + + /* cmdline is used only for logging, no need to abort on truncate */ + (void) strlcpy(cmdline, argv[0], sizeof(cmdline)); Property changes on: head/security/doas/files/patch-doas.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/doas/files/pkg-message.in =================================================================== --- head/security/doas/files/pkg-message.in (nonexistent) +++ head/security/doas/files/pkg-message.in (revision 417407) @@ -0,0 +1,9 @@ +============================================================ +To use doas, + +%%ETCDIR%%/doas.conf + +must be created. + +Refer to doas.conf(5). +============================================================ Property changes on: head/security/doas/files/pkg-message.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/doas/pkg-descr =================================================================== --- head/security/doas/pkg-descr (nonexistent) +++ head/security/doas/pkg-descr (revision 417407) @@ -0,0 +1,6 @@ +This is the FreeBSD port of the OpenBSD "doas" command. The doas program +allows a regular user to run commands as another user (usually root). The +doas command is a simplified (hopefully more secure) version of the "sudo" +command and offers an easier to read/modify configuration. + +WWW: https://github.com/slicer69/doas/ Property changes on: head/security/doas/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property