Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2016 09:00:54 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r419207 - in head/security/super: . files
Message-ID:  <201607280900.u6S90siq063587@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Jul 28 09:00:54 2016
New Revision: 419207
URL: https://svnweb.freebsd.org/changeset/ports/419207

Log:
  - Add LICENSE_FILEs
  - Switch to options helpers
  - Regenerate patches with `make makepatch`

Added:
  head/security/super/files/patch-localsys.h   (contents, props changed)
Deleted:
  head/security/super/files/patch-localsys.h_1
  head/security/super/files/patch-localsys.h_2
Modified:
  head/security/super/Makefile

Modified: head/security/super/Makefile
==============================================================================
--- head/security/super/Makefile	Thu Jul 28 06:40:41 2016	(r419206)
+++ head/security/super/Makefile	Thu Jul 28 09:00:54 2016	(r419207)
@@ -14,6 +14,8 @@ COMMENT=	Allow others to run commands as
 
 LICENSE=	ART10 GPLv1
 LICENSE_COMB=	dual
+LICENSE_FILE_ART10=	${WRKSRC}/Artistic
+LICENSE_FILE_GPLv1=	${WRKSRC}/Copying
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--localstatedir="${PREFIX}/var"
@@ -27,8 +29,12 @@ post-patch:
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/super ${STAGEDIR}${PREFIX}/bin/setuid
+
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${FILESDIR}/sample.tab ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${FILESDIR}/sample.cdmount ${STAGEDIR}${EXAMPLESDIR}

Added: head/security/super/files/patch-localsys.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/super/files/patch-localsys.h	Thu Jul 28 09:00:54 2016	(r419207)
@@ -0,0 +1,31 @@
+--- localsys.h.orig	2007-12-20 19:14:53 UTC
++++ localsys.h
+@@ -16,14 +16,14 @@
+ #ifndef LOCALSYS_H
+ #define LOCALSYS_H
+ 
+-#include "config.h"
+-
+ #include <stdio.h>
+ #include <ctype.h>
+ #include <fcntl.h>
+ #include <pwd.h>
+ #include <grp.h>
+ 
++#include "config.h"
++
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
+@@ -293,9 +293,11 @@ extern int sysinfo();
+ #include <unistd.h>
+ #endif
+ 
++#ifndef __FreeBSD__	/* FBSD has a malloc.h that tells people to obey C89. */
+ #ifdef HAVE_MALLOC_H
+ #include <malloc.h>
+ #endif
++#endif
+ 
+ #ifdef HAVE_SYSLOG_H
+ #include <syslog.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607280900.u6S90siq063587>