Fix permissions of include files. Fix linkage for systems with openssh in base. Add destdir support.diff -r1.7 -r1.8 pkgsrc/security/libssh/Makefile
(joerg)
@@ -1,26 +1,31 @@ | @@ -1,26 +1,31 @@ | |||
1 | # $NetBSD: Makefile,v 1.7 2009/07/17 18:00:22 adrianp Exp $ | 1 | # $NetBSD: Makefile,v 1.8 2009/11/25 21:11:33 joerg Exp $ | |
2 | # | 2 | # | |
3 | # This package currently exists as a dependency for the hydra package but | 3 | # This package currently exists as a dependency for the hydra package but | |
4 | # the later versions of it are not supported by hydra. | 4 | # the later versions of it are not supported by hydra. | |
5 | # This package should not be updated to the latest version available. | 5 | # This package should not be updated to the latest version available. | |
6 | # | 6 | # | |
7 | 7 | |||
8 | DISTNAME= libssh-0.11 | 8 | DISTNAME= libssh-0.11 | |
9 | PKGREVISION= 1 | 9 | PKGREVISION= 1 | |
10 | CATEGORIES= security | 10 | CATEGORIES= security | |
11 | MASTER_SITES= http://www.0xbadc0de.be/libssh/ | 11 | MASTER_SITES= http://www.0xbadc0de.be/libssh/ | |
12 | EXTRACT_SUFX= .tgz | 12 | EXTRACT_SUFX= .tgz | |
13 | 13 | |||
14 | MAINTAINER= pkgsrc-users@NetBSD.org | 14 | MAINTAINER= pkgsrc-users@NetBSD.org | |
15 | HOMEPAGE= http://0xbadc0de.be/ | 15 | HOMEPAGE= http://0xbadc0de.be/ | |
16 | COMMENT= Library providing working SSH implementation | 16 | COMMENT= Library providing working SSH implementation | |
17 | 17 | |||
18 | PKG_DESTDIR_SUPPORT= user-destdir | |||
19 | ||||
18 | GNU_CONFIGURE= YES | 20 | GNU_CONFIGURE= YES | |
19 | 21 | |||
22 | INSTALLATION_DIRS= share/doc/libssh | |||
23 | INSTALL_MAKE_FLAGS+= mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 \ | |||
24 | prefix=${DESTDIR}${PREFIX} | |||
25 | ||||
20 | post-install: | 26 | post-install: | |
21 | ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libssh | 27 | ${INSTALL_DATA} ${WRKSRC}/doc/API.html ${DESTDIR}${PREFIX}/share/doc/libssh | |
22 | ${INSTALL_DATA} ${WRKSRC}/doc/API.html ${PREFIX}/share/doc/libssh | 28 | ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/libssh | |
23 | ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/libssh | |||
24 | 29 | |||
25 | .include "../../security/openssl/buildlink3.mk" | 30 | .include "../../security/openssl/buildlink3.mk" | |
26 | .include "../../mk/bsd.pkg.mk" | 31 | .include "../../mk/bsd.pkg.mk" |
@@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.4 2007/02/25 00:57:54 yyamano Exp $ | 1 | $NetBSD: distinfo,v 1.5 2009/11/25 21:11:33 joerg Exp $ | |
2 | 2 | |||
3 | SHA1 (libssh-0.11.tgz) = 307430249ded90332c4ec77a264913b3bc93a648 | 3 | SHA1 (libssh-0.11.tgz) = 307430249ded90332c4ec77a264913b3bc93a648 | |
4 | RMD160 (libssh-0.11.tgz) = 69c2cc00becb84a62555fe884345398f155815a4 | 4 | RMD160 (libssh-0.11.tgz) = 69c2cc00becb84a62555fe884345398f155815a4 | |
5 | Size (libssh-0.11.tgz) = 303761 bytes | 5 | Size (libssh-0.11.tgz) = 303761 bytes | |
6 | SHA1 (patch-aa) = d2e082d87643c80add1b4ff0f0f467ea09be851b | 6 | SHA1 (patch-aa) = d2e082d87643c80add1b4ff0f0f467ea09be851b | |
7 | SHA1 (patch-ab) = 820c7da4e4019c4a168972855dc7a10fa0c10b57 |
$NetBSD: patch-ab,v 1.1 2009/11/25 21:11:33 joerg Exp $
--- Makefile.in.orig 2005-03-04 20:54:59.000000000 +0100
+++ Makefile.in
@@ -15,7 +15,7 @@ mandir = $(prefix)/man/man1
CC = @CC@
CFLAGS = @CFLAGS@ -Iinclude/ -Wall -g
LDFLAGS = @LDFLAGS@
-LIBS = -lssh -Llibssh/
+LIBS = -Llibssh -lssh
INSTALL = @INSTALL@
LN= @LN_S@
OBJECTS= sample.o samplesshd.o
@@ -27,9 +27,9 @@ all: $(CONFIG) $(OBJECTS)
(cd $$dir && $(MAKE) all) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
- $(CC) -o samplessh sample.o $(LDFLAGS) $(LIBS)
+ $(CC) -o samplessh sample.o $(LIBS) $(LDFLAGS)
$(LN) -sf samplessh samplesftp
- $(CC) -o samplesshd samplesshd.o $(LDFLAGS) $(LIBS)
+ $(CC) -o samplesshd samplesshd.o $(LIBS) $(LDFLAGS)
$(CONFIG):
$(LN) -f ../../config.h $(CONFIG)
dist:
@@ -56,11 +56,11 @@ install: all
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
$(top_srcdir)/mkinstalldirs $(incldir)/libssh
- $(INSTALL) include/libssh/libssh.h $(incldir)/libssh/
- $(INSTALL) include/libssh/config.h $(incldir)/libssh/
- $(INSTALL) include/libssh/sftp.h $(incldir)/libssh/
- $(INSTALL) include/libssh/crypto.h $(incldir)/libssh/
- $(INSTALL) include/libssh/server.h $(incldir)/libssh/
+ $(BSD_INSTALL_DATA) include/libssh/libssh.h $(incldir)/libssh/
+ $(BSD_INSTALL_DATA) include/libssh/config.h $(incldir)/libssh/
+ $(BSD_INSTALL_DATA) include/libssh/sftp.h $(incldir)/libssh/
+ $(BSD_INSTALL_DATA) include/libssh/crypto.h $(incldir)/libssh/
+ $(BSD_INSTALL_DATA) include/libssh/server.h $(incldir)/libssh/
clean:
/bin/rm -f *~ *.o ssh sftp
@for dir in ${subdirs}; do \