1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00

x11/i3lock: Fix staging orphan, assign port to submitter

Details:
  * Change license from BSD to BSD3CLAUSE
  * Use @mode instead of CHMOD
  * Add DOCS to options
  * strip executable
  * Move patch actions to Makefile
  * Fix WWW
  * Fix orphaned etc/pam.3/i3lock
  * Fix LIB_DEPENDS format
  * Pass maintainership to Horia

PR:		190992
Submitted by:	Horia Racoviceanu
Approved by:	maintainer timeout (2 months)
This commit is contained in:
John Marino 2014-08-15 07:45:34 +00:00
parent 4763a75e8d
commit b7857287b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364946
3 changed files with 21 additions and 23 deletions

View File

@ -3,19 +3,19 @@
PORTNAME= i3lock
PORTVERSION= 2.5
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= x11
MASTER_SITES= http://i3wm.org/${PORTNAME}/
MAINTAINER= dhn@FreeBSD.org
MAINTAINER= horia@racoviceanu.com
COMMENT= Slightly improved screen locker based on slock
LICENSE= BSD
LICENSE= BSD3CLAUSE
LIB_DEPENDS= libcairo.so.2:${PORTSDIR}/graphics/cairo \
LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo \
libxcb-keysyms.so:${PORTSDIR}/x11/xcb-util-keysyms \
libxcb-image.so:${PORTSDIR}/x11/xcb-util-image \
libev.so.4:${PORTSDIR}/devel/libev \
libev.so:${PORTSDIR}/devel/libev \
libxkbfile.so:${PORTSDIR}/x11/libxkbfile \
libxkbcommon.so:${PORTSDIR}/x11/libxkbcommon
@ -23,14 +23,27 @@ MAKE_ARGS= PREFIX="${PREFIX}" X11LIB="${LOCALBASE}/lib" \
X11INC="${LOCALBASE}/include" CC="${CC}" \
MANDIR="${MANPREFIX}/man"
PLIST_FILES= bin/i3lock \
PLIST_FILES= "@mode 4755" bin/i3lock @mode \
man/man1/i3lock.1.gz
LDFLAGS+= ${ICONV_LIB}
USE_XORG= x11 xcb xt xproto xext
USES= gmake iconv pkgconfig tar:bzip2
PORTDOCS= CHANGELOG README
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|.*pam.d/i3lock.*| $$(INSTALL)\
-m 644 i3lock.1 $$(DESTDIR)$$(PREFIX)/man/man1|; \
/pam.d/d' \
${WRKSRC}/Makefile
post-install:
${CHMOD} u+s ${STAGEDIR}${PREFIX}/bin/i3lock
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/i3lock
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,15 +0,0 @@
--- ./Makefile.orig 2012-04-01 13:14:28.000000000 +0200
+++ ./Makefile 2012-04-08 13:39:09.000000000 +0200
@@ -42,9 +42,10 @@
install: all
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
- $(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)/pam.d
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)$(SYSCONFDIR)/pam.d
$(INSTALL) -m 755 i3lock $(DESTDIR)$(PREFIX)/bin/i3lock
- $(INSTALL) -m 644 i3lock.pam $(DESTDIR)$(SYSCONFDIR)/pam.d/i3lock
+ $(INSTALL) -m 644 i3lock.pam $(DESTDIR)$(PREFIX)$(SYSCONFDIR)/pam.d/i3lock
+ $(INSTALL) -m 644 i3lock.1 $(DESTDIR)$(PREFIX)/man/man1
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/i3lock

View File

@ -8,4 +8,4 @@ you have entered a password when resuming from suspend, at least sometimes.
i3lock was forked from slock-0.9
WWW: http://i3.zekjur.net/i3lock/
WWW: http://i3wm.org/i3lock/