summaryrefslogtreecommitdiff
path: root/sysutils/liboobs
diff options
context:
space:
mode:
authorjmcneill <jmcneill>2008-11-15 18:30:22 +0000
committerjmcneill <jmcneill>2008-11-15 18:30:22 +0000
commit0bd3808d94f3139e9d32ecb3fe943ded95c2b317 (patch)
treee8046fd80a189d6050506d365d9ae717c666d8c1 /sysutils/liboobs
parent3ec716a5a1844af8714f3dd0c76d0e38ff05d273 (diff)
downloadpkgsrc-0bd3808d94f3139e9d32ecb3fe943ded95c2b317.tar.gz
Initial import of liboobs version 2.22.0.
Liboobs is a lightweight library that provides a GObject based interface to system-tools-backends. It's completely abstracted of the communication and authentication details, making it easy for applications to integrate with the system details.
Diffstat (limited to 'sysutils/liboobs')
-rw-r--r--sysutils/liboobs/DESCR4
-rw-r--r--sysutils/liboobs/Makefile22
-rw-r--r--sysutils/liboobs/PLIST79
-rw-r--r--sysutils/liboobs/buildlink3.mk19
-rw-r--r--sysutils/liboobs/distinfo8
-rw-r--r--sysutils/liboobs/patches/patch-aa16
-rw-r--r--sysutils/liboobs/patches/patch-ab23
-rw-r--r--sysutils/liboobs/patches/patch-ac50
8 files changed, 221 insertions, 0 deletions
diff --git a/sysutils/liboobs/DESCR b/sysutils/liboobs/DESCR
new file mode 100644
index 00000000000..9364a821de6
--- /dev/null
+++ b/sysutils/liboobs/DESCR
@@ -0,0 +1,4 @@
+Liboobs is a lightweight library that provides a GObject based interface
+to system-tools-backends. It's completely abstracted of the
+communication and authentication details, making it easy for
+applications to integrate with the system details.
diff --git a/sysutils/liboobs/Makefile b/sysutils/liboobs/Makefile
new file mode 100644
index 00000000000..e53811d4638
--- /dev/null
+++ b/sysutils/liboobs/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/11/15 18:30:22 jmcneill Exp $
+#
+
+DISTNAME= liboobs-2.22.0
+CATEGORIES= sysutils gnome
+MASTER_SITES= ${MASTER_SITE_GNOME:=sources/liboobs/2.22/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.gnome.org/
+COMMENT= Lightweight GObject based interface to system-tools-backends
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= YES
+USE_DIRS+= gnome2-1.5
+USE_PKGLOCALEDIR= YES
+USE_TOOLS+= gmake intltool msgfmt perl pkg-config
+USE_LIBTOOL= YES
+
+.include "../../sysutils/system-tools-backends/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/liboobs/PLIST b/sysutils/liboobs/PLIST
new file mode 100644
index 00000000000..964eb258f21
--- /dev/null
+++ b/sysutils/liboobs/PLIST
@@ -0,0 +1,79 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/11/15 18:30:22 jmcneill Exp $
+include/liboobs-1.0/oobs/oobs-group.h
+include/liboobs-1.0/oobs/oobs-groupsconfig.h
+include/liboobs-1.0/oobs/oobs-hostsconfig.h
+include/liboobs-1.0/oobs/oobs-iface-ethernet.h
+include/liboobs-1.0/oobs/oobs-iface-irlan.h
+include/liboobs-1.0/oobs/oobs-iface-plip.h
+include/liboobs-1.0/oobs/oobs-iface-ppp.h
+include/liboobs-1.0/oobs/oobs-iface-wireless.h
+include/liboobs-1.0/oobs/oobs-iface.h
+include/liboobs-1.0/oobs/oobs-ifacesconfig.h
+include/liboobs-1.0/oobs/oobs-list.h
+include/liboobs-1.0/oobs/oobs-nfsconfig.h
+include/liboobs-1.0/oobs/oobs-ntpconfig.h
+include/liboobs-1.0/oobs/oobs-ntpserver.h
+include/liboobs-1.0/oobs/oobs-object.h
+include/liboobs-1.0/oobs/oobs-result.h
+include/liboobs-1.0/oobs/oobs-selfconfig.h
+include/liboobs-1.0/oobs/oobs-service.h
+include/liboobs-1.0/oobs/oobs-servicesconfig.h
+include/liboobs-1.0/oobs/oobs-session.h
+include/liboobs-1.0/oobs/oobs-share-nfs.h
+include/liboobs-1.0/oobs/oobs-share-smb.h
+include/liboobs-1.0/oobs/oobs-share.h
+include/liboobs-1.0/oobs/oobs-smbconfig.h
+include/liboobs-1.0/oobs/oobs-statichost.h
+include/liboobs-1.0/oobs/oobs-timeconfig.h
+include/liboobs-1.0/oobs/oobs-user.h
+include/liboobs-1.0/oobs/oobs-usersconfig.h
+include/liboobs-1.0/oobs/oobs.h
+lib/liboobs-1.la
+lib/pkgconfig/liboobs-1.pc
+share/gtk-doc/html/liboobs/OobsGroup.html
+share/gtk-doc/html/liboobs/OobsGroupsConfig.html
+share/gtk-doc/html/liboobs/OobsIface.html
+share/gtk-doc/html/liboobs/OobsIfaceEthernet.html
+share/gtk-doc/html/liboobs/OobsIfaceIRLan.html
+share/gtk-doc/html/liboobs/OobsIfacePlip.html
+share/gtk-doc/html/liboobs/OobsIfaceWireless.html
+share/gtk-doc/html/liboobs/OobsIfacesConfig.html
+share/gtk-doc/html/liboobs/OobsList.html
+share/gtk-doc/html/liboobs/OobsNFSConfig.html
+share/gtk-doc/html/liboobs/OobsNTPConfig.html
+share/gtk-doc/html/liboobs/OobsObject.html
+share/gtk-doc/html/liboobs/OobsSMBConfig.html
+share/gtk-doc/html/liboobs/OobsService.html
+share/gtk-doc/html/liboobs/OobsServicesConfig.html
+share/gtk-doc/html/liboobs/OobsSession.html
+share/gtk-doc/html/liboobs/OobsShare.html
+share/gtk-doc/html/liboobs/OobsShareNFS.html
+share/gtk-doc/html/liboobs/OobsShareSMB.html
+share/gtk-doc/html/liboobs/OobsStaticHost.html
+share/gtk-doc/html/liboobs/OobsTimeConfig.html
+share/gtk-doc/html/liboobs/OobsUser.html
+share/gtk-doc/html/liboobs/OobsUsersConfig.html
+share/gtk-doc/html/liboobs/ch01.html
+share/gtk-doc/html/liboobs/ch02.html
+share/gtk-doc/html/liboobs/ch03.html
+share/gtk-doc/html/liboobs/ch04.html
+share/gtk-doc/html/liboobs/ch05.html
+share/gtk-doc/html/liboobs/ch06.html
+share/gtk-doc/html/liboobs/ch07.html
+share/gtk-doc/html/liboobs/ch08.html
+share/gtk-doc/html/liboobs/home.png
+share/gtk-doc/html/liboobs/index.html
+share/gtk-doc/html/liboobs/index.sgml
+share/gtk-doc/html/liboobs/left.png
+share/gtk-doc/html/liboobs/liboobs-OobsHostsConfig.html
+share/gtk-doc/html/liboobs/liboobs-OobsIfaceISDN.html
+share/gtk-doc/html/liboobs/liboobs-OobsIfaceModem.html
+share/gtk-doc/html/liboobs/liboobs-OobsNTPServer.html
+share/gtk-doc/html/liboobs/liboobs.devhelp
+share/gtk-doc/html/liboobs/liboobs.devhelp2
+share/gtk-doc/html/liboobs/right.png
+share/gtk-doc/html/liboobs/style.css
+share/gtk-doc/html/liboobs/up.png
+@dirrm share/gtk-doc/html/liboobs
+@dirrm include/liboobs-1.0/oobs
+@dirrm include/liboobs-1.0
diff --git a/sysutils/liboobs/buildlink3.mk b/sysutils/liboobs/buildlink3.mk
new file mode 100644
index 00000000000..19c10c4bce2
--- /dev/null
+++ b/sysutils/liboobs/buildlink3.mk
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/11/15 18:30:22 jmcneill Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LIBOOBS_BUILDLINK3_MK:= ${LIBOOBS_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= liboobs
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nliboobs}
+BUILDLINK_PACKAGES+= liboobs
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}liboobs
+
+.if ${LIBOOBS_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.liboobs+= liboobs>=2.22.0
+BUILDLINK_PKGSRCDIR.liboobs?= ../../sysutils/liboobs
+.endif # LIBOOBS_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/sysutils/liboobs/distinfo b/sysutils/liboobs/distinfo
new file mode 100644
index 00000000000..db5b1b969a0
--- /dev/null
+++ b/sysutils/liboobs/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/11/15 18:30:22 jmcneill Exp $
+
+SHA1 (liboobs-2.22.0.tar.bz2) = 109282db84fc809df5ea10a4cfb8bb37863c8aca
+RMD160 (liboobs-2.22.0.tar.bz2) = 41d2149a05c779dfe8e53c77b77c41c58b927a7f
+Size (liboobs-2.22.0.tar.bz2) = 340348 bytes
+SHA1 (patch-aa) = 8cf12f4779eb68c82a7bf5880757350b32e33b38
+SHA1 (patch-ab) = 6dd631852cb10018920870189b6418ecfce3ee9e
+SHA1 (patch-ac) = e0f0f0fbfd3d675ebd8db71fe2e3d6486490e9ea
diff --git a/sysutils/liboobs/patches/patch-aa b/sysutils/liboobs/patches/patch-aa
new file mode 100644
index 00000000000..19be6854722
--- /dev/null
+++ b/sysutils/liboobs/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/11/15 18:30:22 jmcneill Exp $
+
+--- oobs/oobs-group.c.orig 2008-11-15 09:06:29.000000000 -0500
++++ oobs/oobs-group.c
+@@ -27,7 +27,11 @@
+ #include "oobs-usersconfig.h"
+ #include "oobs-defines.h"
+ #include "utils.h"
++#ifndef __NetBSD__
+ #include <crypt.h>
++#else
++#include <unistd.h>
++#endif
+
+ #define OOBS_GROUP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), OOBS_TYPE_GROUP, OobsGroupPrivate))
+
diff --git a/sysutils/liboobs/patches/patch-ab b/sysutils/liboobs/patches/patch-ab
new file mode 100644
index 00000000000..2760c20b8d6
--- /dev/null
+++ b/sysutils/liboobs/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/11/15 18:30:22 jmcneill Exp $
+
+--- oobs/oobs-ifacesconfig.c.orig 2008-11-15 09:08:28.000000000 -0500
++++ oobs/oobs-ifacesconfig.c
+@@ -20,7 +20,6 @@
+
+ #include <dbus/dbus.h>
+ #include <glib-object.h>
+-#include <libhal.h>
+ #include <string.h>
+ #include "oobs-session-private.h"
+ #include "oobs-list-private.h"
+@@ -35,6 +34,10 @@
+ #include "utils.h"
+ #include "config.h"
+
++#ifdef HAVE_HAL
++#include <libhal.h>
++#endif
++
+ #define IFACES_CONFIG_REMOTE_OBJECT "IfacesConfig"
+ #define OOBS_IFACES_CONFIG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), OOBS_TYPE_IFACES_CONFIG, OobsIfacesConfigPrivate))
+
diff --git a/sysutils/liboobs/patches/patch-ac b/sysutils/liboobs/patches/patch-ac
new file mode 100644
index 00000000000..3617c8313bc
--- /dev/null
+++ b/sysutils/liboobs/patches/patch-ac
@@ -0,0 +1,50 @@
+$NetBSD: patch-ac,v 1.1.1.1 2008/11/15 18:30:22 jmcneill Exp $
+
+--- oobs/oobs-user.c.orig 2008-11-15 09:03:02.000000000 -0500
++++ oobs/oobs-user.c
+@@ -23,8 +23,19 @@
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <string.h>
++#ifndef __NetBSD__
+ #include <crypt.h>
+ #include <utmp.h>
++#define UTMP utmp
++#define GETUTENT getutent
++#define ENDUTENT endutent
++#define
++#else
++#include <utmpx.h>
++#define UTMP utmpx
++#define GETUTENT getutxent
++#define ENDUTENT endutxent
++#endif
+
+ #include "oobs-usersconfig.h"
+ #include "oobs-user.h"
+@@ -804,7 +815,7 @@ oobs_user_set_other_data (OobsUser *user
+ gboolean
+ oobs_user_get_active (OobsUser *user)
+ {
+- struct utmp *entry;
++ struct UTMP *entry;
+ const gchar *login;
+ gboolean match = FALSE;
+
+@@ -812,14 +823,14 @@ oobs_user_get_active (OobsUser *user)
+
+ login = oobs_user_get_login_name (user);
+
+- while (!match && (entry = getutent ()) != NULL)
++ while (!match && (entry = GETUTENT ()) != NULL)
+ {
+ match = (entry->ut_type == USER_PROCESS &&
+ strcmp (entry->ut_user, login) == 0);
+ }
+
+ /* close utmp */
+- endutent ();
++ ENDUTENT ();
+
+ return match;
+ }