[Midnightbsd-cvs] mports [15932] trunk/security/openssh-askpass: fix build
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Feb 27 21:35:19 EST 2014
Revision: 15932
http://svnweb.midnightbsd.org/mports/?rev=15932
Author: laffer1
Date: 2014-02-27 21:35:18 -0500 (Thu, 27 Feb 2014)
Log Message:
-----------
fix build
Modified Paths:
--------------
trunk/security/openssh-askpass/Makefile
trunk/security/openssh-askpass/distinfo
Added Paths:
-----------
trunk/security/openssh-askpass/files/
trunk/security/openssh-askpass/files/Makefile.in
Modified: trunk/security/openssh-askpass/Makefile
===================================================================
--- trunk/security/openssh-askpass/Makefile 2014-02-28 02:23:31 UTC (rev 15931)
+++ trunk/security/openssh-askpass/Makefile 2014-02-28 02:35:18 UTC (rev 15932)
@@ -3,6 +3,7 @@
PORTNAME= OpenSSH-askpass
PORTVERSION= 1.2.4.1
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.jmknoble.net/software/x11-ssh-askpass/
DISTNAME= x11-ssh-askpass-${PORTVERSION}
@@ -9,14 +10,11 @@
MAINTAINER= ports at MidnightBSD.org
COMMENT= Graphical password applet for entering SSH passphrase
-LICENSE= agg
-USE_IMAKE= yes
-USE_XORG= x11 xt
+LICENSE= mit
+LICENSE_FILE= ${WRKSRC}/README
-MAN1= x11-ssh-askpass.1
-MLINKS= x11-ssh-askpass.1 ssh-askpass.1
-
+USE_XORG= x11 xt sm ice
DOCSDIR= ${PREFIX}/share/doc/ssh-askpass
PLIST_FILES= bin/x11-ssh-askpass \
bin/ssh-askpass \
@@ -23,12 +21,20 @@
lib/X11/app-defaults/SshAskpass
PORTDOCS= README TODO ChangeLog
-pre-configure:
- cd ${WRKSRC} && ./configure --libexecdir=${PREFIX}/bin
+MAN1= x11-ssh-askpass.1
+MLINKS= x11-ssh-askpass.1 ssh-askpass.1
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE= DOCS
+
+
+.include <bsd.mport.options.mk>
+
+post-extract:
+ ${INSTALL_DATA} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
+
+.if ${PORT_OPTIONS:MDOCS}
post-install:
- ${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
Modified: trunk/security/openssh-askpass/distinfo
===================================================================
--- trunk/security/openssh-askpass/distinfo 2014-02-28 02:23:31 UTC (rev 15931)
+++ trunk/security/openssh-askpass/distinfo 2014-02-28 02:35:18 UTC (rev 15932)
@@ -1,4 +1,2 @@
-MD5 (x11-ssh-askpass-1.2.4.1.tar.gz) = 8f2e41f3f7eaa8543a2440454637f3c3
SHA256 (x11-ssh-askpass-1.2.4.1.tar.gz) = 620de3c32ae72185a2c9aeaec03af24242b9621964e38eb625afb6cdb30b8c88
-RMD160 (x11-ssh-askpass-1.2.4.1.tar.gz) = 60030ade2fd8228ab25e8e03389bd7a6a9c7b7fe
SIZE (x11-ssh-askpass-1.2.4.1.tar.gz) = 29229
Added: trunk/security/openssh-askpass/files/Makefile.in
===================================================================
--- trunk/security/openssh-askpass/files/Makefile.in (rev 0)
+++ trunk/security/openssh-askpass/files/Makefile.in 2014-02-28 02:35:18 UTC (rev 15932)
@@ -0,0 +1,50 @@
+# $MidnightBSD$
+
+PREFIX?= /usr/local
+LOCALBASE?= /usr/local
+BINDIR?= ${PREFIX}/bin
+MANDIR?= ${PREFIX}/man/man
+NO_MANCOMPRESS=
+
+CLASS= SshAskpass
+FILES= ${CLASS}
+FILESDIR?= ${PREFIX}/lib/X11/app-defaults
+
+PROG= x11-ssh-askpass
+
+SRCS= drawing.c dynlist.c resources.c x11-ssh-askpass.c
+LDADD= -lXt -lX11 -lSM -lICE -L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib
+CFLAGS+=-I${LOCALBASE}/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO
+MAN= ${PROG}.1
+
+x11-ssh-askpass.o: ${CLASS}_ad.h
+
+${PROG}.1: x11-ssh-askpass.man.in
+ sed -e 's|@NAME@|${PROG}|' \
+ -e 's|@DATE@|September 17, 2001|'\
+ -e 's|@VERSION@|1.2.4.1|'\
+ < $? > $@
+
+${CLASS}: ${CLASS}.ad
+ cp $? $@
+
+${CLASS}.ad: ${CLASS}-default.ad
+ cp $? $@
+
+${CLASS}_ad.h: ${CLASS}.ad
+ sed -n '/^[^!]/s/.*/"&",/p' < $? > $@ || (rm -f $@; false)
+
+${PROG}: ${CLASS}_ad.h
+CLEANFILES+= ${CLASS}_ad.h
+
+ssh-askpass: ${PROG}
+ ln -s -f $? $@
+
+beforeinstall:
+ mkdir -p ${DESTDIR}${FILESDIR}
+
+afterinstall:
+ ln -s -f ${PROG} ${DESTDIR}${BINDIR}/ssh-askpass
+ ln -s -f ${PROG}.1 ${DESTDIR}${MANDIR}1/ssh-askpass.1
+
+.include <bsd.prog.mk>
More information about the Midnightbsd-cvs
mailing list