Import liboobs-2.30.1
Liboobs is a wrapping library to the System Tools Backends, it will provide easy to access GObjects to system configuration details, like users, groups and network interfaces, it will handle sessions with the backend and data consistency too. This is a WIP, hence not hooked to the build. DO NOT try this at home or you will harm yourself, you have been warned. ok jasper@
This commit is contained in:
parent
baf7e88ba9
commit
54c3a78954
39
devel/liboobs/Makefile
Normal file
39
devel/liboobs/Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/09/10 13:50:41 ajacoutot Exp $
|
||||
|
||||
COMMENT= wrapping library to the System Tools Backends
|
||||
|
||||
GNOME_VERSION= 2.30.1
|
||||
GNOME_PROJECT= liboobs
|
||||
|
||||
SHARED_LIBS += oobs-1 0.0 # 4.0
|
||||
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB += crypto dbus-1 dbus-glib-1 glib-2.0 gobject-2.0 gthread-2.0
|
||||
WANTLIB += pcre
|
||||
|
||||
LIB_DEPENDS= ::x11/dbus-glib
|
||||
RUN_DEPENDS= ::sysutils/system-tools-backends
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
|
||||
MODULES= devel/gettext \
|
||||
x11/gnome
|
||||
|
||||
CONFIGURE_STYLE=gnu
|
||||
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
||||
--disable-gtk-doc \
|
||||
--without-hal
|
||||
|
||||
pre-configure:
|
||||
perl -pi -e 's,utmpx,utmp,g;' \
|
||||
-e 's,-lcrypt,-lcrypto,g' ${WRKSRC}/configure
|
||||
|
||||
.include <bsd.port.mk>
|
5
devel/liboobs/distinfo
Normal file
5
devel/liboobs/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (liboobs-2.30.1.tar.bz2) = ZavRJUxjrqBPwYecIeAFHQ==
|
||||
RMD160 (liboobs-2.30.1.tar.bz2) = h+8XDXoO5zVjzjQb7JWK2Z8Becc=
|
||||
SHA1 (liboobs-2.30.1.tar.bz2) = 9dmVox/JB63RZZU8N5exXL1h2ig=
|
||||
SHA256 (liboobs-2.30.1.tar.bz2) = WRyTjvAAvLU1fPm4Mpxng8Xy6NcburgcGWHSIO0kYJE=
|
||||
SIZE (liboobs-2.30.1.tar.bz2) = 369861
|
32
devel/liboobs/patches/patch-oobs_oobs-user_c
Normal file
32
devel/liboobs/patches/patch-oobs_oobs-user_c
Normal file
@ -0,0 +1,32 @@
|
||||
$OpenBSD: patch-oobs_oobs-user_c,v 1.1.1.1 2010/09/10 13:50:41 ajacoutot Exp $
|
||||
--- oobs/oobs-user.c.orig Mon Mar 8 23:21:44 2010
|
||||
+++ oobs/oobs-user.c Wed Sep 8 19:26:30 2010
|
||||
@@ -24,8 +24,10 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+#ifndef __OpenBSD__
|
||||
#include <crypt.h>
|
||||
#include <utmpx.h>
|
||||
+#endif
|
||||
|
||||
#include "oobs-object-private.h"
|
||||
#include "oobs-usersconfig.h"
|
||||
@@ -1261,6 +1263,7 @@ oobs_user_set_locale (OobsUser *user, const gchar *loc
|
||||
gboolean
|
||||
oobs_user_get_active (OobsUser *user)
|
||||
{
|
||||
+#ifndef __OpenBSD__
|
||||
struct utmpx *entry;
|
||||
const gchar *login;
|
||||
gboolean match = FALSE;
|
||||
@@ -1281,6 +1284,9 @@ oobs_user_get_active (OobsUser *user)
|
||||
endutxent ();
|
||||
|
||||
return match;
|
||||
+#else
|
||||
+ return FALSE;
|
||||
+#endif
|
||||
}
|
||||
|
||||
/**
|
4
devel/liboobs/pkg/DESCR
Normal file
4
devel/liboobs/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
Liboobs is a wrapping library to the System Tools Backends, it will
|
||||
provide easy to access GObjects to system configuration details, like
|
||||
users, groups and network interfaces, it will handle sessions with the
|
||||
backend and data consistency too.
|
2
devel/liboobs/pkg/PFRAG.shared
Normal file
2
devel/liboobs/pkg/PFRAG.shared
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/09/10 13:50:41 ajacoutot Exp $
|
||||
@lib lib/liboobs-1.so.${LIBoobs-1_VERSION}
|
86
devel/liboobs/pkg/PLIST
Normal file
86
devel/liboobs/pkg/PLIST
Normal file
@ -0,0 +1,86 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/09/10 13:50:41 ajacoutot Exp $
|
||||
%%SHARED%%
|
||||
include/liboobs-1.0/
|
||||
include/liboobs-1.0/oobs/
|
||||
include/liboobs-1.0/oobs/oobs-defines.h
|
||||
include/liboobs-1.0/oobs/oobs-enum-types.h
|
||||
include/liboobs-1.0/oobs/oobs-error.h
|
||||
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.a
|
||||
lib/liboobs-1.la
|
||||
lib/pkgconfig/liboobs-1.pc
|
||||
share/gtk-doc/
|
||||
share/gtk-doc/html/
|
||||
share/gtk-doc/html/liboobs/
|
||||
share/gtk-doc/html/liboobs/OobsGroup.html
|
||||
share/gtk-doc/html/liboobs/OobsGroupsConfig.html
|
||||
share/gtk-doc/html/liboobs/OobsHostsConfig.html
|
||||
share/gtk-doc/html/liboobs/OobsIfaceEthernet.html
|
||||
share/gtk-doc/html/liboobs/OobsIfaceIRLan.html
|
||||
share/gtk-doc/html/liboobs/OobsIfacePPP.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/OobsNTPServer.html
|
||||
share/gtk-doc/html/liboobs/OobsObject.html
|
||||
share/gtk-doc/html/liboobs/OobsSMBConfig.html
|
||||
share/gtk-doc/html/liboobs/OobsSelfConfig.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/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-Oobs.html
|
||||
share/gtk-doc/html/liboobs/liboobs-OobsError.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
|
Loading…
Reference in New Issue
Block a user