diff options
author | garga <garga@FreeBSD.org> | 2010-10-18 18:28:07 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2010-10-18 18:28:07 +0800 |
commit | 11be85ded7139e83e37c3db62e0641ed90afdcf3 (patch) | |
tree | 6a73481bfddd7d7982d25ec36758f3340e25682e /net | |
parent | be7f77da31c3d173524dceff5d16c7346cc814e6 (diff) | |
download | freebsd-ports-gnome-11be85ded7139e83e37c3db62e0641ed90afdcf3.tar.gz freebsd-ports-gnome-11be85ded7139e83e37c3db62e0641ed90afdcf3.tar.zst freebsd-ports-gnome-11be85ded7139e83e37c3db62e0641ed90afdcf3.zip |
Update to 34 and set default samba version to 3.4
PR: ports/151125
Submitted by: garga@
Approved by: maintainer timeout (> 2 weeks)
Diffstat (limited to 'net')
-rw-r--r-- | net/samba-pdbsql/Makefile | 26 | ||||
-rw-r--r-- | net/samba-pdbsql/distinfo | 6 | ||||
-rw-r--r-- | net/samba-pdbsql/files/patch-Makefile.in | 15 | ||||
-rw-r--r-- | net/samba-pdbsql/files/patch-pdb_pgsql.c | 27 | ||||
-rw-r--r-- | net/samba-pdbsql/pkg-plist | 12 |
5 files changed, 34 insertions, 52 deletions
diff --git a/net/samba-pdbsql/Makefile b/net/samba-pdbsql/Makefile index 1c25d9f4299b..aa5431b480f3 100644 --- a/net/samba-pdbsql/Makefile +++ b/net/samba-pdbsql/Makefile @@ -6,24 +6,21 @@ # PORTNAME= pdbsql -PORTVERSION= 0.3.1 -PORTREVISION= 2 +PORTVERSION= 34 CATEGORIES= net -MASTER_SITES= SF +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}_${PORTVERSION}/ PKGNAMEPREFIX= samba- DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= timur@FreeBSD.org COMMENT= Multiplexor, MySQL and PostgeSQL passdb backends for Samba3 -USE_BZIP2= yes USE_GMAKE= yes GNU_CONFIGURE= yes # Add a build dependency for Samba port USE_AUTOTOOLS= autoconf:268 autoheader:268 -WRKSRC= ${WRKDIR}/${DISTNAME}-samba -SAMBA_PORT= net/samba3 +SAMBA_PORT?= net/samba34 OPTIONS= MYSQL "With MySQL passdb backend" on \ PGSQL "With PostgreSQL passdb backend" on @@ -45,6 +42,9 @@ BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/${SAMBA_PORT}:configure CONFIGURE_ARGS+= --libdir=${SAMBA_PDBDIR} \ --with-samba-dir=${SAMBA_WRKSRC} +PLIST_SUB+= SAMBA_PDBDIR=${SAMBA_PDBDIR:S/${PREFIX}\///} \ + SAMBA_MODULEDIR=${SAMBA_MODULEDIR:S/${PREFIX}\///} + .if exists(${LOCALBASE}/bin/mysql) WITH_MYSQL= yes . undef WITHOUT_MYSQL @@ -77,22 +77,18 @@ pre-configure: do-install: @${MKDIR} ${EXAMPLESDIR} @${MKDIR} ${SAMBA_PDBDIR} - @${INSTALL_PROGRAM} ${WRKSRC}/multi.so ${SAMBA_PDBDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/multi.so ${SAMBA_PDBDIR} .if !defined(WITHOUT_MYSQL) - @${INSTALL_PROGRAM} ${WRKSRC}/mysql.so ${SAMBA_PDBDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/mysql.so ${SAMBA_PDBDIR} . for f in mysql.dump smb.conf.mysql - @${INSTALL_DATA} ${WRKSRC}/docs/${f} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/${f} ${EXAMPLESDIR} . endfor .endif .if !defined(WITHOUT_PGSQL) - @${INSTALL_PROGRAM} ${WRKSRC}/pgsql.so ${SAMBA_PDBDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/pgsql.so ${SAMBA_PDBDIR} . for f in pgsql.dump smb.conf.pgsql - @${INSTALL_DATA} ${WRKSRC}/docs/${f} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/${f} ${EXAMPLESDIR} . endfor .endif -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/docs/pdb_mysql.xml ${DOCSDIR} -.endif .include <bsd.port.post.mk> diff --git a/net/samba-pdbsql/distinfo b/net/samba-pdbsql/distinfo index 2e92bc93c006..4f1c7cd0ad65 100644 --- a/net/samba-pdbsql/distinfo +++ b/net/samba-pdbsql/distinfo @@ -1,3 +1,3 @@ -MD5 (pdbsql-0.3.1.tar.bz2) = ff111de303d55c1a6777b48f1b963151 -SHA256 (pdbsql-0.3.1.tar.bz2) = db67ba994b7536f72d8674606670a9a59f41a24901322262891819d10e558938 -SIZE (pdbsql-0.3.1.tar.bz2) = 85554 +MD5 (pdbsql-34.tar.gz) = f6fe0040970affa5b55410173e28b12d +SHA256 (pdbsql-34.tar.gz) = bc31091a4cbdf6c66505dc5e9789e4091aa3dd6a12d438b4534f92f194cd5b4d +SIZE (pdbsql-34.tar.gz) = 64098 diff --git a/net/samba-pdbsql/files/patch-Makefile.in b/net/samba-pdbsql/files/patch-Makefile.in new file mode 100644 index 000000000000..64f8520c8b58 --- /dev/null +++ b/net/samba-pdbsql/files/patch-Makefile.in @@ -0,0 +1,15 @@ +--- Makefile.in.orig 2010-09-30 16:53:15.000000000 -0300 ++++ Makefile.in 2010-09-30 16:53:47.000000000 -0300 +@@ -9,10 +9,10 @@ + + MYSQL_LIBS = @MYSQL_LIBS@ + PGSQL_LIBS = @PGSQL_LIBS@ +-TALLOC_LIBS = -ltalloc ++TALLOC_LIBS = + SOURCEDIR = @SOURCEDIR@ + LIBDIR = @LIBDIR@ +-CFLAGS = @CFLAGS@ -I$(SOURCEDIR)/source3 -I$(SOURCEDIR)/source3/include -I$(SOURCEDIR)/source3/librpc -I$(SOURCEDIR)/lib/replace -I$(SOURCEDIR)/lib/tdb/include -I$(SOURCEDIR)/lib/tevent -I$(SOURCEDIR)/ -I$(SOURCEDIR)/lib/talloc ++CFLAGS = @CFLAGS@ -I$(SOURCEDIR)/source3 -I$(SOURCEDIR)/source3/include -I$(SOURCEDIR)/source3/librpc -I$(SOURCEDIR)/lib/replace -I$(SOURCEDIR)/lib/tdb/include -I$(SOURCEDIR)/lib/tevent -I$(SOURCEDIR)/ -I$(SOURCEDIR)/lib/talloc -I$(LOCALBASE)/include -L$(LOCALBASE)/lib + + all: $(addsuffix .$(SHLIBEXT), $(modules)) + diff --git a/net/samba-pdbsql/files/patch-pdb_pgsql.c b/net/samba-pdbsql/files/patch-pdb_pgsql.c deleted file mode 100644 index 318451ef0f58..000000000000 --- a/net/samba-pdbsql/files/patch-pdb_pgsql.c +++ /dev/null @@ -1,27 +0,0 @@ ---- pdb_pgsql.c.orig 2008-05-01 12:30:43.000000000 +0200 -+++ pdb_pgsql.c 2008-05-01 12:41:38.000000000 +0200 -@@ -164,7 +164,7 @@ - pdb_set_profile_path (u, PQgetvalue(r, row, 13), PDB_SET); - pdb_set_acct_desc (u, PQgetvalue(r, row, 14), PDB_SET); - pdb_set_workstations (u, PQgetvalue(r, row, 15), PDB_SET); -- pdb_set_commemt (u, PQgetvalue(r, row, 16), PDB_SET); -+ pdb_set_comment (u, PQgetvalue(r, row, 16), PDB_SET); - pdb_set_munged_dial (u, PQgetvalue(r, row, 17), PDB_SET); - - pdb_set_acct_ctrl (u, PQgetlong (r, row, 23), PDB_SET); -@@ -551,8 +551,13 @@ - static NTSTATUS pgsqlsam_init (struct pdb_methods **pdb_method, const char *location) - { - NTSTATUS nt_status; -- struct pdb_pgsql_data *data = malloc_p(struct pdb_pgsql_data); -- -+ struct pdb_pgsql_data *data = malloc(sizeof(struct pdb_pgsql_data)); -+ -+ if (data == NULL) { -+ DEBUG(0, ("Can't allocate memory to data\n")); -+ return NT_STATUS_NO_MEMORY; -+ } -+ - if (!NT_STATUS_IS_OK(nt_status = make_pdb_method(pdb_method))) { - return nt_status; - } diff --git a/net/samba-pdbsql/pkg-plist b/net/samba-pdbsql/pkg-plist index 0c76589b32af..0b3d5d8ac422 100644 --- a/net/samba-pdbsql/pkg-plist +++ b/net/samba-pdbsql/pkg-plist @@ -1,12 +1,10 @@ -lib/samba/pdb/multi.so -%%MYSQL%%lib/samba/pdb/mysql.so -%%PGSQL%%lib/samba/pdb/pgsql.so +%%SAMBA_PDBDIR%%/multi.so +%%MYSQL%%%%SAMBA_PDBDIR%%/mysql.so +%%PGSQL%%%%SAMBA_PDBDIR%%/pgsql.so %%MYSQL%%%%EXAMPLESDIR%%/mysql.dump %%MYSQL%%%%EXAMPLESDIR%%/smb.conf.mysql %%PGSQL%%%%EXAMPLESDIR%%/pgsql.dump %%PGSQL%%%%EXAMPLESDIR%%/smb.conf.pgsql -%%PORTDOCS%%%%DOCSDIR%%/pdb_mysql.xml -%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm %%EXAMPLESDIR%% -@dirrmtry lib/samba/pdb -@dirrmtry lib/samba +@dirrmtry %%SAMBA_PDBDIR%% +@dirrmtry %%SAMBA_MODULEDIR%% |