summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-09-18 08:02:28 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-09-18 08:02:28 +0000
commitc997a8b37dc583ad9307fbafbb426111fbc32314 (patch)
tree702e99a89bf3f4ce8ee3fd716f153ee274740d60 /net
parentChase libraries, fix build and bump PORTREVISION. (diff)
GSAMBAD is an easy to use GTK+ frontend for the SAMBA file and print
server. It features multiple local and remote user and group imports, on the fly share creation and user handling, including randomization of usernames and passwords. PDF printing to shared/private directories or email. It also features three levels of domain management strategies. WWW: http://gadmintools.org
Notes
Notes: svn path=/head/; revision=199683
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/gsambad/Makefile42
-rw-r--r--net/gsambad/distinfo3
-rw-r--r--net/gsambad/files/crypt.h40
-rw-r--r--net/gsambad/files/patch-Makefile.in35
-rw-r--r--net/gsambad/files/patch-configure.in41
-rw-r--r--net/gsambad/pkg-descr7
-rw-r--r--net/gsambad/pkg-plist11
8 files changed, 180 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 8664c058e2c6..ff1c67cd63ab 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -177,6 +177,7 @@
SUBDIR += gq
SUBDIR += grdesktop
SUBDIR += grsync
+ SUBDIR += gsambad
SUBDIR += gsk
SUBDIR += gspoof
SUBDIR += gstreamer-plugins-libmms
diff --git a/net/gsambad/Makefile b/net/gsambad/Makefile
new file mode 100644
index 000000000000..556ff099b47f
--- /dev/null
+++ b/net/gsambad/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: gsambad
+# Date created: 16 September 2007
+# Whom: Martin Wilke <miwi@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gsambad
+PORTVERSION= 0.1.8
+CATEGORIES= net
+MASTER_SITES= http://mange.dynalias.org/linux/${PORTNAME}/
+
+MAINTAINER= beech@FreeBSD.org
+COMMENT= Gtk2 Frontend for samba daemon
+
+RUN_DEPENDS= ${LOCALBASE}/bin/smbclient:${PORTSDIR}/net/samba3
+
+USE_GMAKE= yes
+USE_AUTOTOOLS= autoconf:261
+GNU_CONFIGURE= yes
+USE_GNOME= gtk20 pkgconfig
+
+PORTDOCS= AUTHORS README ChangeLog COPYING
+
+post-extract:
+ @${CP} ${FILESDIR}/crypt.h ${WRKSRC}/src/
+
+post-configure:
+ @${REINPLACE_CMD} -e "s:\<crypt.h\>:\"crypt.h\":" ${WRKSRC}/src/functions.c
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+ @${INSTALL} -d ${PREFIX}/share/applications
+ @${INSTALL_DATA} ${WRKSRC}/desktop/net-gsambad.desktop \
+ ${PREFIX}/share/applications
+ @${INSTALL} -d ${DATADIR}
+ @${INSTALL_DATA} ${WRKSRC}/scripts/example.bat ${DATADIR}
+
+.include <bsd.port.mk>
diff --git a/net/gsambad/distinfo b/net/gsambad/distinfo
new file mode 100644
index 000000000000..d34caa7ceb2c
--- /dev/null
+++ b/net/gsambad/distinfo
@@ -0,0 +1,3 @@
+MD5 (gsambad-0.1.8.tar.gz) = 77e248371b35ea2960b5521175bfa547
+SHA256 (gsambad-0.1.8.tar.gz) = c6d131d89845e44a91811a077831e0a92a4d2bf00d90fd8bcd49387333e3fc5c
+SIZE (gsambad-0.1.8.tar.gz) = 576860
diff --git a/net/gsambad/files/crypt.h b/net/gsambad/files/crypt.h
new file mode 100644
index 000000000000..ba3f87b409c9
--- /dev/null
+++ b/net/gsambad/files/crypt.h
@@ -0,0 +1,40 @@
+/* LINTLIBRARY */
+/*
+ * Copyright (c) 1999
+ * Mark Murray. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY MARK MURRAY AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL MARK MURRAY OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * $FreeBSD: /tmp/pcvs/ports/net/gsambad/files/Attic/crypt.h,v 1.1 2007-09-18 08:02:28 miwi Exp $
+ *
+ */
+
+/* magic sizes */
+#define MD4_SIZE 16
+#define MD5_SIZE 16
+
+char *crypt_des(const char *pw, const char *salt);
+char *crypt_md5(const char *pw, const char *salt);
+char *crypt_nthash(const char *pw, const char *salt);
+char *crypt_blowfish(const char *pw, const char *salt);
+
+extern void _crypt_to64(char *s, u_long v, int n);
diff --git a/net/gsambad/files/patch-Makefile.in b/net/gsambad/files/patch-Makefile.in
new file mode 100644
index 000000000000..b864050fa728
--- /dev/null
+++ b/net/gsambad/files/patch-Makefile.in
@@ -0,0 +1,35 @@
+--- Makefile.in.orig 2007-08-26 06:49:56.000000000 -0800
++++ Makefile.in 2007-09-17 10:07:26.000000000 -0800
+@@ -651,18 +651,6 @@
+ fi;
+ if test -d $(DESTDIR)$(sysconfdir)/security/console.apps; then \
+ cp etc/security/console.apps/gsambad $(DESTDIR)$(sysconfdir)/security/console.apps/; \
+- fi;
+- if test -d $(DESTDIR)$(datadir)/applications; then \
+- cp desktop/net-gsambad.desktop $(DESTDIR)$(datadir)/applications/; \
+- fi;
+- if test ! -d $(DESTDIR)$(datadir)/doc/gsambad; then \
+- $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/gsambad; \
+- fi;
+- if test -d $(DESTDIR)$(datadir)/doc/gsambad; then \
+- cp AUTHORS $(DESTDIR)$(datadir)/doc/gsambad/; \
+- cp README $(DESTDIR)$(datadir)/doc/gsambad/; \
+- cp ChangeLog $(DESTDIR)$(datadir)/doc/gsambad/; \
+- cp COPYING $(DESTDIR)$(datadir)/doc/gsambad/; \
+ fi;
+ if test ! -d $(DESTDIR)$(sysconfdir)/gsambad; then \
+ $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gsambad; \
+@@ -670,13 +658,6 @@
+ if test -d $(DESTDIR)$(bindir) && test ! -f $(DESTDIR)$(bindir)/gsambadpdf; then \
+ cp scripts/gsambadpdf $(bindir)/; \
+ fi;
+- @echo Installing example logon script to static /home/netlogon.
+- if test ! -d /home/netlogon; then \
+- mkdir -p /home/netlogon; \
+- fi;
+- if test -d /home/netlogon && test ! -f /home/netlogon/example.bat; then \
+- cp scripts/example.bat /home/netlogon/; \
+- fi;
+ @echo ""
+ @echo "Start GSAMBAD by typing gsambad in a terminal"
+ @echo "or start it from the menu."
diff --git a/net/gsambad/files/patch-configure.in b/net/gsambad/files/patch-configure.in
new file mode 100644
index 000000000000..a3a545cdc797
--- /dev/null
+++ b/net/gsambad/files/patch-configure.in
@@ -0,0 +1,41 @@
+--- configure.in.orig 2007-08-26 06:49:43.000000000 -0800
++++ configure.in 2007-09-16 18:26:20.000000000 -0800
+@@ -137,25 +137,25 @@
+ AC_MSG_RESULT([Using samba server user: (${SAMBA_USER})])
+
+ dnl Path to the smb.conf file.
+-default_smb_conf="/etc/samba/smb.conf"
++default_smb_conf="${prefix}/etc/smb.conf"
+ test "x$SAMBA_CONF" = x && SAMBA_CONF=$default_smb_conf
+ AC_DEFINE_UNQUOTED(SAMBA_CONF,"`eval echo "${SAMBA_CONF}"`",[Path to smbd.conf])
+ AC_MSG_RESULT([Using smb.conf file: (${SAMBA_CONF})])
+
+ dnl Path to the backup smb.conf file.
+-default_smb_conf_backup="/etc/samba/smb.conf.old.gsambad-${VERSION}"
++default_smb_conf_backup="${prefix}/etc/smb.conf.old.gsambad-${VERSION}"
+ test "x$SAMBA_CONF_BACKUP" = x && SAMBA_CONF_BACKUP=$default_smb_conf_backup
+ AC_DEFINE_UNQUOTED(SAMBA_CONF_BACKUP,"`eval echo "${SAMBA_CONF_BACKUP}"`",[Path to backup smb.conf])
+ AC_MSG_RESULT([Using backup smb.conf file: (${SAMBA_CONF_BACKUP})])
+
+ dnl Path to the smbpasswd file.
+-default_smb_passwd_conf="/etc/samba/smbpasswd"
++default_smb_passwd_conf="${prefix}/etc/samba/smbpasswd"
+ test "x$SAMBA_PASSWD" = x && SAMBA_PASSWD=$default_smb_passwd_conf
+ AC_DEFINE_UNQUOTED(SAMBA_PASSWD,"`eval echo "${SAMBA_PASSWD}"`",[Path to smbpasswd])
+ AC_MSG_RESULT([Using smbpasswd file: (${SAMBA_PASSWD})])
+
+ dnl Path to the smbusers file.
+-default_samba_usermap="/etc/samba/smbusers"
++default_samba_usermap="${prefix}/etc/samba/smbusers"
+ test "x$SAMBA_USERMAP" = x && SAMBA_USERMAP=$default_samba_usermap
+ AC_DEFINE_UNQUOTED(SAMBA_USERMAP,"`eval echo "${SAMBA_USERMAP}"`",[Path to smbusers])
+ AC_MSG_RESULT([Using smbusers file: (${SAMBA_USERMAP})])
+@@ -173,7 +173,7 @@
+ AC_MSG_RESULT([Using security log: (${SECURE_LOG})])
+
+ dnl Path the proc filesystem.
+-default_proc_path="/proc"
++default_proc_path="/compat/linux/proc"
+ test "x$PROC_PATH" = x && PROC_PATH=$default_proc_path
+ AC_DEFINE_UNQUOTED(PROC_PATH,"`eval echo "${PROC_PATH}"`",[path to the proc filesystem])
+ AC_MSG_RESULT([Using proc: (${PROC_PATH})])
diff --git a/net/gsambad/pkg-descr b/net/gsambad/pkg-descr
new file mode 100644
index 000000000000..b1c498dc978e
--- /dev/null
+++ b/net/gsambad/pkg-descr
@@ -0,0 +1,7 @@
+GSAMBAD is an easy to use GTK+ frontend for the SAMBA file and print
+server. It features multiple local and remote user and group imports, on
+the fly share creation and user handling, including randomization of
+usernames and passwords. PDF printing to shared/private directories or
+email. It also features three levels of domain management strategies.
+
+WWW: http://gadmintools.org
diff --git a/net/gsambad/pkg-plist b/net/gsambad/pkg-plist
new file mode 100644
index 000000000000..2032703130e4
--- /dev/null
+++ b/net/gsambad/pkg-plist
@@ -0,0 +1,11 @@
+bin/gsambadpdf
+etc/pam.d/gsambad
+sbin/gsambad
+share/pixmaps/gsambad.png
+share/pixmaps/gsambad/gsambad.png
+share/applications/net-gsambad.desktop
+%%DATADIR%%/example.bat
+@dirrm share/pixmaps/gsambad
+@dirrmtry %%DATADIR%%
+@dirrmtry share/applications
+@dirrm etc/gsambad