summaryrefslogtreecommitdiff
path: root/community/gadmin-samba
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/gadmin-samba
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/gadmin-samba')
-rw-r--r--community/gadmin-samba/PKGBUILD32
-rw-r--r--community/gadmin-samba/gadmin-samba.install7
-rw-r--r--community/gadmin-samba/makefile.patch18
3 files changed, 57 insertions, 0 deletions
diff --git a/community/gadmin-samba/PKGBUILD b/community/gadmin-samba/PKGBUILD
new file mode 100644
index 000000000..316fb2624
--- /dev/null
+++ b/community/gadmin-samba/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Florian Pritz <flo@xinu.at>
+# Contributor: Andrea Scarpino <bash.lnx@gmail.com>
+# Contributor: Marcin Kaczorek <kaczus@karek.pl>
+
+pkgname=gadmin-samba
+pkgver=0.3.2
+pkgrel=1
+pkgdesc="An easy to use GTK+ frontend for the SAMBA file and print server"
+url="http://gadmintools.flippedweb.com/index.php?option=com_content&task=view&id=16&Itemid=30"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('gtk2' 'samba')
+replaces=('gsambad')
+install=gadmin-samba.install
+source=("http://mange.dynalias.org/linux/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+options=(!emptydirs)
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --localstatedir=/var --sbindir=/usr/sbin
+ make
+}
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+
+ install -D -m644 desktop/${pkgname}.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+}
+md5sums=('14e2ca42b4826c3d87492965d310e631')
diff --git a/community/gadmin-samba/gadmin-samba.install b/community/gadmin-samba/gadmin-samba.install
new file mode 100644
index 000000000..e8a5f5151
--- /dev/null
+++ b/community/gadmin-samba/gadmin-samba.install
@@ -0,0 +1,7 @@
+post_install() {
+ echo "See /usr/share/gadmin-samba/example.bat for an example of logon script"
+}
+
+op=$1
+shift
+$op $*
diff --git a/community/gadmin-samba/makefile.patch b/community/gadmin-samba/makefile.patch
new file mode 100644
index 000000000..54998fbb1
--- /dev/null
+++ b/community/gadmin-samba/makefile.patch
@@ -0,0 +1,18 @@
+--- Makefile.in 2008-05-25 17:44:34.000000000 +0200
++++ Makefile.in.new 2008-08-10 15:12:37.000000000 +0200
+@@ -677,11 +677,11 @@
+ cp scripts/gadmin-samba-pdf $(bindir)/; \
+ fi;
+ @echo Installing example logon script to static /home/netlogon.
+- if test ! -d /home/netlogon; then \
+- mkdir -p /home/netlogon; \
++ if test ! -d $(DESTDIR)/usr/share/gadmin-samba; then \
++ mkdir -p $(DESTDIR)/usr/share/gadmin-samba; \
+ fi;
+- if test -d /home/netlogon && test ! -f /home/netlogon/example.bat; then \
+- cp scripts/example.bat /home/netlogon/; \
++ if test -d $(DESTDIR)/usr/share/gadmin-samba && test ! -f $(DESTDIR)/usr/share/gadmin-samba/example.bat; then \
++ cp scripts/example.bat $(DESTDIR)/usr/share/gadmin-samba/; \
+ fi;
+ @echo ""
+ @echo "Start GADMIN-SAMBA by typing gadmin-samba in a terminal"