SHARED_LIBS

This commit is contained in:
steven 2006-01-03 21:21:52 +00:00
parent 3ff69c6673
commit 82cee7cf82
3 changed files with 18 additions and 15 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.61 2005/11/03 19:52:18 mbalmer Exp $
# $OpenBSD: Makefile,v 1.62 2006/01/03 21:21:52 steven Exp $
COMMENT= "SMB and CIFS client and server for UNIX"
COMMENT-docs= "documentation and examples for samba"
@ -6,6 +6,7 @@ COMMENT-docs= "documentation and examples for samba"
DISTNAME= samba-3.0.20b
PKGNAME= ${DISTNAME}p1
FULLPKGNAME-docs= ${DISTNAME:S/-/-docs-/}
SHARED_LIBS= smbclient 0.1
CATEGORIES= net
@ -28,8 +29,10 @@ MODULES= converters/libiconv
LIB_DEPENDS= popt::devel/popt
MAKE_FLAGS= PASSWD_PROGRAM="/usr/bin/passwd"
FAKE_FLAGS= DESTDIR="${DESTDIR}"
MAKE_FLAGS= PASSWD_PROGRAM="/usr/bin/passwd" \
LIBsmbclient_VERSION=${LIBsmbclient_VERSION}
FAKE_FLAGS= DESTDIR="${DESTDIR}" \
LIBsmbclient_VERSION=${LIBsmbclient_VERSION}
CONFDIR= ${SYSCONFDIR}/samba
SAMBA_LOGDIR= /var/log
@ -120,8 +123,8 @@ post-install:
${INSTALL_SCRIPT} ${WRKSRC}/script/mksmbpasswd.sh \
${PREFIX}/bin/mksmbpasswd
@chown ${BINOWN}:${BINGRP} ${PREFIX}/bin/smbpasswd
#@rm ${PREFIX}/lib/libsmbclient.so.0.1
@ln -s samba/libsmbclient.so.0.1 \
${PREFIX}/lib/libsmbclient.so.0.1
#@rm ${PREFIX}/lib/libsmbclient.so.${LIBsmbclient_VERSION}
@ln -s samba/libsmbclient.so.${LIBsmbclient_VERSION} \
${PREFIX}/lib/libsmbclient.so.${LIBsmbclient_VERSION}
.include <bsd.port.mk>

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-Makefile_in,v 1.3 2005/11/03 15:10:20 mbalmer Exp $
--- Makefile.in.orig Thu Nov 3 13:59:45 2005
+++ Makefile.in Thu Nov 3 15:17:03 2005
$OpenBSD: patch-Makefile_in,v 1.4 2006/01/03 21:21:52 steven Exp $
--- Makefile.in.orig Wed Oct 12 19:03:23 2005
+++ Makefile.in Tue Jan 3 18:26:33 2006
@@ -93,9 +93,10 @@ LOCKDIR = @lockdir@
# the directory where pid files go
PIDDIR = @piddir@
@ -9,7 +9,7 @@ $OpenBSD: patch-Makefile_in,v 1.3 2005/11/03 15:10:20 mbalmer Exp $
LIBSMBCLIENT_MAJOR=0
LIBSMBCLIENT_MINOR=1
+LIBSMBCLIENT=bin/libsmbclient.a \
+ @LIBSMBCLIENT_SHARED@.${LIBSMBCLIENT_MAJOR}.${LIBSMBCLIENT_MINOR}
+ @LIBSMBCLIENT_SHARED@.$(LIBsmbclient_VERSION)
LIBSMBSHAREMODES=bin/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
LIBSMBSHAREMODES_MAJOR=0
@ -18,7 +18,7 @@ $OpenBSD: patch-Makefile_in,v 1.3 2005/11/03 15:10:20 mbalmer Exp $
@SONAMEFLAG@`basename $@`
-bin/libsmbclient.@SHLIBEXT@: $(LIBSMBCLIENT_PICOBJS)
+bin/libsmbclient.@SHLIBEXT@.${LIBSMBCLIENT_MAJOR}.${LIBSMBCLIENT_MINOR}: $(LIBSMBCLIENT_PICOBJS)
+bin/libsmbclient.@SHLIBEXT@.$(LIBsmbclient_VERSION): $(LIBSMBCLIENT_PICOBJS)
@echo Linking libsmbclient shared library $@
@$(SHLD) $(LDSHFLAGS) -o $@ $(LIBSMBCLIENT_PICOBJS) $(LDFLAGS) $(LIBS) \
- $(KRB5LIBS) $(LDAP_LIBS) \
@ -32,7 +32,7 @@ $OpenBSD: patch-Makefile_in,v 1.3 2005/11/03 15:10:20 mbalmer Exp $
installclientlib: installdirs libsmbclient
@$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)$(LIBDIR)
- -$(INSTALLCLIENTCMD_SH) bin/libsmbclient.@SHLIBEXT@ $(DESTDIR)$(LIBDIR)
+ -$(INSTALLCLIENTCMD_SH) bin/libsmbclient.@SHLIBEXT@.${LIBSMBCLIENT_MAJOR}.${LIBSMBCLIENT_MINOR} $(DESTDIR)$(LIBDIR)
+ -$(INSTALLCLIENTCMD_SH) bin/libsmbclient.@SHLIBEXT@.$(LIBsmbclient_VERSION) $(DESTDIR)$(LIBDIR)
-$(INSTALLCLIENTCMD_A) bin/libsmbclient.a $(DESTDIR)$(LIBDIR)
@$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)${prefix}/include
-$(INSTALLCMD) $(srcdir)/include/libsmbclient.h $(DESTDIR)${prefix}/include

View File

@ -1,9 +1,9 @@
@comment $OpenBSD: PFRAG.shared,v 1.2 2005/11/03 15:10:20 mbalmer Exp $
@lib lib/libsmbclient.so.0.1
@comment $OpenBSD: PFRAG.shared,v 1.3 2006/01/03 21:21:52 steven Exp $
@lib lib/libsmbclient.so.${LIBsmbclient_VERSION}
lib/samba/charset/
lib/samba/charset/CP437.so
lib/samba/charset/CP850.so
@lib lib/samba/libsmbclient.so.0.1
@lib lib/samba/libsmbclient.so.${LIBsmbclient_VERSION}
lib/samba/vfs/
lib/samba/vfs/audit.so
lib/samba/vfs/cap.so