View | Details | Raw Unified | Return to bug 177273
Collapse All | Expand All

(-)x11/xtrlock/Makefile (-13 / +24 lines)
Lines 1-29 Link Here
1
# New ports collection makefile for:	xtrlock
1
# Created by: Alexey Mikhailov <karma@ez.pereslavl.ru>
2
# Date created:		18 May 2004
3
# Whom:			Alexey Mikhailov <karma@ez.pereslavl.ru>
4
#
5
# $FreeBSD: head/x11/xtrlock/Makefile 300897 2012-07-14 14:29:18Z beat $
2
# $FreeBSD: head/x11/xtrlock/Makefile 300897 2012-07-14 14:29:18Z beat $
6
#
7
3
8
PORTNAME=	xtrlock
4
PORTNAME=	xtrlock
9
PORTVERSION=	2.0.14
5
PORTVERSION=	2.2
10
CATEGORIES=	x11
6
CATEGORIES=	x11
11
MASTER_SITES=	${MASTER_SITE_DEBIAN}
7
MASTER_SITES=	DEBIAN
12
MASTER_SITE_SUBDIR=	pool/main/x/xtrlock/
8
DISTNAME=	${PORTNAME}_${PORTVERSION}
13
DISTNAME=	${PORTNAME}_2.0-${PORTVERSION:E}
14
9
15
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	X Transparent Lock
11
COMMENT=	X Transparent Lock
17
12
18
LICENSE=	GPLv2 # or higher
13
LICENSE=	GPLv2 # (or later)
19
LICENSE_FILE=	${WRKSRC}/debian/copyright
14
15
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
20
16
21
USE_XORG=	x11
17
USE_XORG=	x11
22
18
23
WRKSRC=		${WRKDIR}/${PORTNAME}-2.0
19
CFLAGS+=	-I${LOCALBASE}/include
24
MAKEFILE=	${FILESDIR}/Makefile
20
LDFLAGS+=	-L${LOCALBASE}/lib -lX11 -lcrypt
25
21
26
MAN1=		xtrlock.1
22
MAN1=		xtrlock.1
27
PLIST_FILES=	bin/xtrlock
23
PLIST_FILES=	bin/xtrlock
28
24
25
post-extract:
26
	@${LN} -sf xtrlock.man ${WRKSRC}/xtrlock.1
27
28
post-patch:
29
	@${REINPLACE_CMD} -e \
30
		's|<crypt.h>|<unistd.h>| ; \
31
		 s|<values.h>|<limits.h>|' ${WRKSRC}/xtrlock.c
32
33
do-build:
34
	(cd ${WRKSRC} && ${CC} ${CFLAGS} -o xtrlock xtrlock.c ${LDFLAGS})
35
36
do-install:
37
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} xtrlock ${PREFIX}/bin)
38
	(cd ${WRKSRC} && ${INSTALL_MAN} xtrlock.1 ${MANPREFIX}/man/man1)
39
29
.include <bsd.port.mk>
40
.include <bsd.port.mk>
(-)x11/xtrlock/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (xtrlock_2.0-14.tar.gz) = 2b25b6b91c33e61f1b9f6acf292cc34c58d8f04b00e4e3d2689c1b13c6714fbe
1
SHA256 (xtrlock_2.2.tar.gz) = eed63851f4ad9f3026fd0a73767c8d2e5e2b973e050d271be6ec5086faa11ef6
2
SIZE (xtrlock_2.0-14.tar.gz) = 7746
2
SIZE (xtrlock_2.2.tar.gz) = 20716
(-)x11/xtrlock/files/Makefile (-39 lines)
Lines 1-39 Link Here
1
# Makefile for xtrlock - X Transparent Lock
2
# This Makefile provided for those of you who lack a functioning xmkmf.
3
#
4
# Copyright (C)1993,1994 Ian Jackson
5
#
6
# This is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 2, or (at your option)
9
# any later version.
10
#
11
# This is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
# GNU General Public License for more details.
15
#
16
# $FreeBSD: head/x11/xtrlock/files/Makefile 300897 2012-07-14 14:29:18Z beat $
17
#
18
19
LDLIBS=-lX11 -lcrypt
20
CC?=gcc
21
CFLAGS+=-I${LOCALBASE}/include -L${LOCALBASE}/lib
22
INSTALL=install -c
23
INSTALL_PROGRAM = ${INSTALL}
24
INSTPGMFLAGS = -s -o root -m4111
25
OBJS=xtrlock.o
26
27
xtrlock:	xtrlock.o
28
		${CC} ${CFLAGS} ${LDLIBS} -o xtrlock ${OBJS}
29
30
xtrlock.o:	xtrlock.c lock.bitmap mask.bitmap patchlevel.h
31
	        ${CC} -c ${CFLAGS} xtrlock.c
32
33
install:	xtrlock install.man
34
		$(INSTALL_PROGRAM) $(INSTPGMFLAGS) xtrlock ${PREFIX}/bin
35
36
install.man:
37
		$(INSTALL) -m 644 xtrlock.man ${PREFIX}/man/man1/xtrlock.1
38
39
all:            xtrlock
(-)x11/xtrlock/files/patch-xtrlock.c (-18 lines)
Lines 1-18 Link Here
1
2
$FreeBSD: head/x11/xtrlock/files/patch-xtrlock.c 300897 2012-07-14 14:29:18Z beat $
3
4
--- xtrlock.c.orig	Sun Aug 22 18:08:41 2004
5
+++ xtrlock.c	Sun Aug 22 18:08:58 2004
6
@@ -31,11 +31,9 @@
7
 #include <grp.h>
8
 #include <limits.h>
9
 #include <string.h>
10
-#include <crypt.h>
11
 #include <unistd.h>
12
 #include <math.h>
13
 #include <ctype.h>
14
-#include <values.h>
15
 
16
 #ifdef SHADOW_PWD
17
 #include <shadow.h>
18
(-)x11/xtrlock/pkg-descr (+2 lines)
Line 1 Link Here
1
A minimal xlock with minimum usage of resources.
1
A minimal xlock with minimum usage of resources.
2
3
WWW: http://packages.qa.debian.org/x/xtrlock.html

Return to bug 177273