mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
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
This commit is contained in:
parent
96a96882a4
commit
c997a8b37d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=199683
@ -177,6 +177,7 @@
|
||||
SUBDIR += gq
|
||||
SUBDIR += grdesktop
|
||||
SUBDIR += grsync
|
||||
SUBDIR += gsambad
|
||||
SUBDIR += gsk
|
||||
SUBDIR += gspoof
|
||||
SUBDIR += gstreamer-plugins-libmms
|
||||
|
42
net/gsambad/Makefile
Normal file
42
net/gsambad/Makefile
Normal file
@ -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>
|
3
net/gsambad/distinfo
Normal file
3
net/gsambad/distinfo
Normal file
@ -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
|
40
net/gsambad/files/crypt.h
Normal file
40
net/gsambad/files/crypt.h
Normal file
@ -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);
|
35
net/gsambad/files/patch-Makefile.in
Normal file
35
net/gsambad/files/patch-Makefile.in
Normal file
@ -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."
|
41
net/gsambad/files/patch-configure.in
Normal file
41
net/gsambad/files/patch-configure.in
Normal file
@ -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})])
|
7
net/gsambad/pkg-descr
Normal file
7
net/gsambad/pkg-descr
Normal file
@ -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
|
11
net/gsambad/pkg-plist
Normal file
11
net/gsambad/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user