diff --git a/databases/libsdb/Makefile b/databases/libsdb/Makefile index 5061db43d5ae..54364a638933 100644 --- a/databases/libsdb/Makefile +++ b/databases/libsdb/Makefile @@ -17,10 +17,6 @@ HAS_CONFIGURE= yes MAKE_ARGS= PREFIX="${PREFIX}" CC="${CC}" CFLAGS="${CFLAGS}" USE_LDCONFIG= yes -MAN3= sdb.3 sdb_init.3 sdb_open.3 sdb_close.3 sdb_query.3 -MAN8= sdbd.8 - PLIST_SUB= VERSION="${PORTVERSION}" -NO_STAGE= yes .include diff --git a/databases/libsdb/files/patch-Makefiles_Other b/databases/libsdb/files/patch-Makefiles_Other index 2eb4c90a5aaa..057f0024d36c 100644 --- a/databases/libsdb/files/patch-Makefiles_Other +++ b/databases/libsdb/files/patch-Makefiles_Other @@ -1,6 +1,6 @@ ---- Makefiles/Other.orig Tue Sep 13 00:26:50 2005 -+++ Makefiles/Other Tue Sep 13 00:27:45 2005 -@@ -24,16 +24,13 @@ +--- Makefiles/Other.orig 2008-04-30 16:38:02.000000000 +0800 ++++ Makefiles/Other 2014-05-16 10:07:54.769419058 +0800 +@@ -24,18 +24,15 @@ $(STATICLIB): $(STATICOBJ) $(SHAREDLIB): $(SHAREDOBJ) rm -f $(SHAREDLIB) @@ -15,8 +15,12 @@ - mkdir -p $(LIBDIR) - cp $(SOVERSION) $(LIBDIR) - cp $(STATICLIB) $(LIBDIR) -+ $(BSD_INSTALL_PROGRAM) $(SOVERSION) $(LIBDIR) -+ $(BSD_INSTALL_DATA) $(STATICLIB) $(LIBDIR) - cd $(LIBDIR) && ln -s $(SOVERSION) $(SHAREDLIB) - cd $(LIBDIR) && ln -s $(SOVERSION) $(SONAME) +- cd $(LIBDIR) && ln -s $(SOVERSION) $(SHAREDLIB) +- cd $(LIBDIR) && ln -s $(SOVERSION) $(SONAME) ++ $(BSD_INSTALL_PROGRAM) $(SOVERSION) $(DESTDIR)$(LIBDIR) ++ $(BSD_INSTALL_DATA) $(STATICLIB) $(DESTDIR)$(LIBDIR) ++ cd $(DESTDIR)$(LIBDIR) && ln -s $(SOVERSION) $(SHAREDLIB) ++ cd $(DESTDIR)$(LIBDIR) && ln -s $(SOVERSION) $(SONAME) + uninstall-lib: + cd $(LIBDIR) && rm -f $(SHAREDLIB) $(STATICLIB) $(SOVERSION) $(SONAME) diff --git a/databases/libsdb/files/patch-config.in b/databases/libsdb/files/patch-config.in index a25531be0eb7..061a3f3a490e 100644 --- a/databases/libsdb/files/patch-config.in +++ b/databases/libsdb/files/patch-config.in @@ -1,13 +1,13 @@ ---- config.in.orig Sat Feb 19 01:20:21 2005 -+++ config.in Tue Sep 13 01:40:14 2005 -@@ -78,21 +78,22 @@ +--- config.in.orig 2008-04-30 16:38:02.000000000 +0800 ++++ config.in 2014-05-16 10:25:15.024329118 +0800 +@@ -81,21 +81,22 @@ sdbd: sdbd.o sdb-config $(CC) -I. -L. -lsdb $(LDFLAGS) -o $@ sdbd.o install-man: - mkdir -p $(MANDIR)/man3 && cp $(MAN3) $(MANDIR)/man3 - mkdir -p $(MANDIR)/man8 && cp $(MAN8) $(MANDIR)/man8 -+ $(BSD_INSTALL_MAN) $(MAN3) $(MANDIR)/man3 -+ $(BSD_INSTALL_MAN) $(MAN8) $(MANDIR)/man8 ++ $(BSD_INSTALL_MAN) $(MAN3) $(DESTDIR)$(MANDIR)/man3 ++ $(BSD_INSTALL_MAN) $(MAN8) $(DESTDIR)$(MANDIR)/man8 uninstall-man: cd $(MANDIR)/man3 && rm -f $(MAN3) @@ -15,15 +15,15 @@ install-prog: $(PROGS) - mkdir -p $(BINDIR) && cp $(PROGS) $(BINDIR) -+ $(BSD_INSTALL_PROGRAM) sdb_client sdbd_client sdbd $(BINDIR) -+ $(BSD_INSTALL_SCRIPT) sdb-config $(BINDIR) ++ $(BSD_INSTALL_PROGRAM) sdb_client sdbd_client sdbd $(DESTDIR)$(BINDIR) ++ $(BSD_INSTALL_SCRIPT) sdb-config $(DESTDIR)$(BINDIR) uninstall-prog: cd $(BINDIR) && rm -f $(PROGS) install-header: - mkdir -p $(INCDIR) && cp $(HEADERS) $(INCDIR) -+ $(BSD_INSTALL_DATA) $(HEADERS) $(INCDIR) ++ $(BSD_INSTALL_DATA) $(HEADERS) $(DESTDIR)$(INCDIR) uninstall-header: cd $(INCDIR) && rm -f $(HEADERS) diff --git a/databases/libsdb/pkg-plist b/databases/libsdb/pkg-plist index 32ba3e7f5504..8d870a1ccd4b 100644 --- a/databases/libsdb/pkg-plist +++ b/databases/libsdb/pkg-plist @@ -7,3 +7,9 @@ lib/libsdb.a lib/libsdb.so lib/libsdb.so.0 lib/libsdb.so.%%VERSION%% +man/man3/sdb.3.gz +man/man3/sdb_close.3.gz +man/man3/sdb_init.3.gz +man/man3/sdb_open.3.gz +man/man3/sdb_query.3.gz +man/man8/sdbd.8.gz