- Add LICENSE

- Pet portlint
- Regenerate patches
This commit is contained in:
Dmitry Marakasov
2017-03-09 09:19:21 +00:00
parent 7356095eae
commit 8d59de6851
3 changed files with 17 additions and 13 deletions

View File

@@ -11,6 +11,9 @@ DISTFILES= Imakefile xkbctrl.c
MAINTAINER= ports@FreeBSD.org
COMMENT= Display and manipulate XKB keyboard controls from the commandline
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
DIST_SUBDIR= xkbctrl
PLIST_FILES= bin/xkbctrl
USES= imake
@@ -18,13 +21,14 @@ USE_XORG= x11 xkbfile
NO_WRKSUBDIR= yes
do-extract:
@${RM} -r ${WRKSRC}
@${MKDIR} ${WRKSRC}
@for _file in ${DISTFILES}; do \
${CP} ${DISTDIR}/${DIST_SUBDIR}/$${_file} ${WRKSRC}; \
done
@${RM} -r ${WRKSRC}
@${MKDIR} ${WRKSRC}
@for _file in ${DISTFILES}; do \
${CP} ${DISTDIR}/${DIST_SUBDIR}/$${_file} ${WRKSRC}; \
done
@${SED} -n '3,24p' <${WRKSRC}/xkbctrl.c >${WRKSRC}/COPYING
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>

View File

@@ -1,6 +1,6 @@
--- Imakefile.org Sun Jan 9 22:48:52 2000
+++ Imakefile Sun Jan 9 22:49:13 2000
@@ -7,35 +7,9 @@
--- Imakefile.orig 2017-03-09 09:12:29 UTC
+++ Imakefile
@@ -7,35 +7,9 @@ XCOMM $XConsortium: Imakefile /main/7 19
DEPLIBS = $(DEPXKBFILELIB) $(DEPXONLYLIB)
XTLOCLIBS = $(XTOOLLIB) $(XONLYLIB)
XTDEPLIBS = $(DEPXTOOLLIB) $(DEPXONLYLIB)

View File

@@ -1,6 +1,6 @@
--- xkbctrl.c.org Sun Jan 9 22:51:02 2000
+++ xkbctrl.c Wed Jul 5 22:15:09 2000
@@ -27,7 +27,7 @@
--- xkbctrl.c.orig 2017-03-09 09:12:29 UTC
+++ xkbctrl.c
@@ -27,7 +27,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <stdio.h>
#include <stdlib.h>
@@ -9,7 +9,7 @@
#include <ctype.h>
#include <X11/Xos.h>
#include <X11/Xlib.h>
@@ -112,7 +112,7 @@
@@ -112,7 +112,7 @@ register char *tmp;
if (*tmp=='4') {
*changes|= Mod4Mask;
if (onOff) *mods|= Mod4Mask;