initial import of kde2 basic packages, work in progress
This commit is contained in:
parent
6efca829c4
commit
f163596a25
36
x11/kde/base2/Makefile
Normal file
36
x11/kde/base2/Makefile
Normal file
@ -0,0 +1,36 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2000/10/09 22:38:34 espie Exp $
|
||||
|
||||
CATEGORIES= x11 x11/kde
|
||||
VERSION= 1.94
|
||||
DISTNAME= kdebase-${VERSION}
|
||||
DIST_SUBDIR= kde
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_KDE}
|
||||
MASTER_SITE_SUBDIR= unstable/distribution/KDE-${VERSION}/tar/src/
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
LIB_DEPENDS= kdecore.::x11/kde/libs2 \
|
||||
qt.2.::x11/qt2
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS= --with-qt-includes=${LOCALBASE}/include/X11/qt2
|
||||
CONFIGURE_ARGS+= --with-qt-libraries=${LOCALBASE}/lib/qt2
|
||||
CONFIGURE_ARGS+= --with-extra-libs=${LOCALBASE}/lib
|
||||
CONFIGURE_ARGS+= --with-extra-includes=${LOCALBASE}/include
|
||||
|
||||
# Not yet, too much time to compile
|
||||
#CONFIGURE_ARGS+= --enable-static
|
||||
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
||||
|
||||
USE_GMAKE= Yes
|
||||
CONFIGURE_ENV= MOC=${LOCALBASE}/bin/moc2 \
|
||||
RUN_KAPPFINDER=no KDEDIR=/usr/local
|
||||
|
||||
# GPL
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
|
||||
|
||||
.include <bsd.port.mk>
|
3
x11/kde/base2/files/md5
Normal file
3
x11/kde/base2/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (kde/kdebase-1.94.tar.bz2) = a6617df687698e4954d7011a08625ec2
|
||||
RMD160 (kde/kdebase-1.94.tar.bz2) = 31ecdbccc7da1ce398cfad32679e1671146f461a
|
||||
SHA1 (kde/kdebase-1.94.tar.bz2) = baf07e2033f3686804105e47ce088042a0e1e929
|
21
x11/kde/base2/patches/opatch-kwin_clients_b2_b2client_cpp
Normal file
21
x11/kde/base2/patches/opatch-kwin_clients_b2_b2client_cpp
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: opatch-kwin_clients_b2_b2client_cpp,v 1.1.1.1 2000/10/09 22:38:34 espie Exp $
|
||||
--- kwin/clients/b2/b2client.cpp.orig Fri Sep 29 00:57:37 2000
|
||||
+++ kwin/clients/b2/b2client.cpp Fri Sep 29 01:01:56 2000
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
extern "C"
|
||||
{
|
||||
- Client *allocate(Workspace *ws, WId w)
|
||||
+ inline Client *allocate(Workspace *ws, WId w)
|
||||
{
|
||||
return(new B2Client(ws, w));
|
||||
}
|
||||
@@ -72,7 +72,7 @@ static void drawB2Rect(KPixmap *pix, con
|
||||
static void create_pixmaps();
|
||||
static void redraw_pixmaps();
|
||||
|
||||
-QPixmap* kwin_get_menu_pix_hack()
|
||||
+inline QPixmap* kwin_get_menu_pix_hack()
|
||||
{
|
||||
create_pixmaps();
|
||||
//return menu_pix; FIXME
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: opatch-kwin_clients_kde1_kde1client_cpp,v 1.1.1.1 2000/10/09 22:38:34 espie Exp $
|
||||
--- kwin/clients/kde1/kde1client.cpp.orig Fri Sep 29 00:14:12 2000
|
||||
+++ kwin/clients/kde1/kde1client.cpp Fri Sep 29 00:14:35 2000
|
||||
@@ -22,7 +22,7 @@ Copyright (C) 1999, 2000 Matthias Ettric
|
||||
|
||||
extern "C"
|
||||
{
|
||||
- Client * allocate(Workspace * workSpace, WId winId)
|
||||
+ inline Client * allocate(Workspace * workSpace, WId winId)
|
||||
{
|
||||
return new StdClient(workSpace, winId);
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: opatch-kwin_clients_kstep_nextclient_cpp,v 1.1.1.1 2000/10/09 22:38:34 espie Exp $
|
||||
--- kwin/clients/kstep/nextclient.cpp.orig Fri Sep 29 00:46:56 2000
|
||||
+++ kwin/clients/kstep/nextclient.cpp Fri Sep 29 00:47:03 2000
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
extern "C"
|
||||
{
|
||||
- Client *allocate(Workspace *ws, WId w)
|
||||
+ inline Client *allocate(Workspace *ws, WId w)
|
||||
{
|
||||
return(new NextClient(ws, w));
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: opatch-kwin_clients_laptop_laptopclient_cpp,v 1.1.1.1 2000/10/09 22:38:34 espie Exp $
|
||||
--- kwin/clients/laptop/laptopclient.cpp.orig Fri Sep 29 01:06:41 2000
|
||||
+++ kwin/clients/laptop/laptopclient.cpp Fri Sep 29 01:06:49 2000
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
extern "C"
|
||||
{
|
||||
- Client *allocate(Workspace *ws, WId w)
|
||||
+ inline Client *allocate(Workspace *ws, WId w)
|
||||
{
|
||||
return(new LaptopClient(ws, w));
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: opatch-kwin_clients_modernsystem_modernsys_cpp,v 1.1.1.1 2000/10/09 22:38:34 espie Exp $
|
||||
--- kwin/clients/modernsystem/modernsys.cpp.orig Fri Sep 29 01:28:47 2000
|
||||
+++ kwin/clients/modernsystem/modernsys.cpp Fri Sep 29 01:28:57 2000
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
extern "C"
|
||||
{
|
||||
- Client *allocate(Workspace *ws, WId w)
|
||||
+ inline Client *allocate(Workspace *ws, WId w)
|
||||
{
|
||||
return(new ModernSys(ws, w));
|
||||
}
|
12
x11/kde/base2/patches/opatch-kwin_clients_riscos_Manager_cpp
Normal file
12
x11/kde/base2/patches/opatch-kwin_clients_riscos_Manager_cpp
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: opatch-kwin_clients_riscos_Manager_cpp,v 1.1.1.1 2000/10/09 22:38:34 espie Exp $
|
||||
--- kwin/clients/riscos/Manager.cpp.orig Fri Sep 29 01:22:48 2000
|
||||
+++ kwin/clients/riscos/Manager.cpp Fri Sep 29 01:22:57 2000
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
extern "C"
|
||||
{
|
||||
- Client * allocate(Workspace * workSpace, WId winId)
|
||||
+ inline Client * allocate(Workspace * workSpace, WId winId)
|
||||
{
|
||||
return new RiscOS::Manager(workSpace, winId);
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: opatch-kwin_clients_system_systemclient_cpp,v 1.1.1.1 2000/10/09 22:38:34 espie Exp $
|
||||
--- kwin/clients/system/systemclient.cpp.orig Fri Sep 29 00:51:43 2000
|
||||
+++ kwin/clients/system/systemclient.cpp Fri Sep 29 00:52:03 2000
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
extern "C"
|
||||
{
|
||||
- Client *allocate(Workspace *ws, WId w)
|
||||
+ inline Client *allocate(Workspace *ws, WId w)
|
||||
{
|
||||
return(new SystemClient(ws, w));
|
||||
}
|
15
x11/kde/base2/patches/patch-admin_ltcf-cxx_sh
Normal file
15
x11/kde/base2/patches/patch-admin_ltcf-cxx_sh
Normal file
@ -0,0 +1,15 @@
|
||||
--- admin/ltcf-cxx.sh.orig Sat Sep 9 18:59:52 2000
|
||||
+++ admin/ltcf-cxx.sh Tue Sep 26 21:19:31 2000
|
||||
@@ -339,6 +339,12 @@ case "$host_os" in
|
||||
ld_shlibs=no
|
||||
fi
|
||||
;;
|
||||
+ openbsd*)
|
||||
+ ld_shlibs=yes
|
||||
+ hardcode_libdir_flag_spec='-R$libdir'
|
||||
+ hardcode_direct=yes
|
||||
+ hardcode_shlibpath_var=no
|
||||
+ ;;
|
||||
osf3*)
|
||||
if test "$with_gcc" = yes && test "$with_gnu_ld" = no; then
|
||||
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
31
x11/kde/base2/patches/patch-admin_ltconfig
Normal file
31
x11/kde/base2/patches/patch-admin_ltconfig
Normal file
@ -0,0 +1,31 @@
|
||||
--- admin/ltconfig.orig Thu Aug 10 23:58:04 2000
|
||||
+++ admin/ltconfig Fri Sep 29 15:26:38 2000
|
||||
@@ -620,6 +620,12 @@ old_archive_cmds='$AR $AR_FLAGS $oldlib$
|
||||
old_postinstall_cmds='chmod 644 $oldlib'
|
||||
old_postuninstall_cmds=
|
||||
|
||||
+case "$host_os" in
|
||||
+openbsd*)
|
||||
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
||||
+ ;;
|
||||
+esac
|
||||
+
|
||||
# Source the script associated with the $tagname tag configuration.
|
||||
if test -n "$tagname"; then
|
||||
. $ltmain
|
||||
@@ -1133,6 +1139,15 @@ openbsd*)
|
||||
need_lib_prefix=no
|
||||
need_version=no
|
||||
fi
|
||||
+ file_magic_cmd='/usr/bin/env -i /usr/bin/file'
|
||||
+ if $file_magic_cmd /usr/lib/libc.so.* | grep ELF >/dev/null; then
|
||||
+ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
|
||||
+ else
|
||||
+ deplibs_check_method='file_magic OpenBSD/.* demand paged shared library.*'
|
||||
+ fi
|
||||
+ # trust our libraries, as libtool is abysmally stupid with libgcc
|
||||
+ deplibs_check_method=pass_all
|
||||
+ sys_lib_dlsearch_path_spec='/usr/lib /usr/local/lib /usr/X11R6/lib /usr/local/lib/qt2'
|
||||
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
|
||||
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
||||
shlibpath_var=LD_LIBRARY_PATH
|
13
x11/kde/base2/patches/patch-kcontrol_background_Makefile_in
Normal file
13
x11/kde/base2/patches/patch-kcontrol_background_Makefile_in
Normal file
@ -0,0 +1,13 @@
|
||||
--- kcontrol/background/Makefile.in.orig Thu Oct 5 18:22:29 2000
|
||||
+++ kcontrol/background/Makefile.in Thu Oct 5 18:25:14 2000
|
||||
@@ -419,6 +419,10 @@ maintainer-clean-libtool:
|
||||
$(CXXCOMPILE) -c `cygpath -w $<`
|
||||
.cc.lo:
|
||||
$(LTCXXCOMPILE) -c $<
|
||||
+
|
||||
+bgsettings.lo: bgsettings.cc
|
||||
+ $(LTCXXCOMPILE) -O0 -c bgsettings.cc
|
||||
+
|
||||
.cpp.o:
|
||||
$(CXXCOMPILE) -c $<
|
||||
.cpp.obj:
|
12
x11/kde/base2/patches/patch-kcontrol_fonts_Makefile_in
Normal file
12
x11/kde/base2/patches/patch-kcontrol_fonts_Makefile_in
Normal file
@ -0,0 +1,12 @@
|
||||
--- kcontrol/fonts/Makefile.in.orig Thu Oct 5 21:40:40 2000
|
||||
+++ kcontrol/fonts/Makefile.in Thu Oct 5 21:41:02 2000
|
||||
@@ -390,6 +390,9 @@ maintainer-clean-libtool:
|
||||
.cpp.lo:
|
||||
$(LTCXXCOMPILE) -c $<
|
||||
|
||||
+fonts.lo: fonts.cpp
|
||||
+ $(LTCXXCOMPILE) -O0 -c fonts.cpp
|
||||
+
|
||||
install-lnfDATA: $(lnf_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(lnfdir)
|
11
x11/kde/base2/patches/patch-kcontrol_info_info_cpp
Normal file
11
x11/kde/base2/patches/patch-kcontrol_info_info_cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- kcontrol/info/info.cpp.orig Thu Oct 5 22:04:19 2000
|
||||
+++ kcontrol/info/info.cpp Thu Oct 5 22:04:42 2000
|
||||
@@ -435,6 +435,8 @@ void KInfoListWidget::resizeEvent( QResi
|
||||
#include "info_hpux.cpp"
|
||||
#elif __NetBSD__
|
||||
#include "info_netbsd.cpp"
|
||||
+#elif __OpenBSD__
|
||||
+#include "info_openbsd.cpp"
|
||||
#elif __svr4__
|
||||
#include "info_svr4.cpp"
|
||||
#else
|
318
x11/kde/base2/patches/patch-kcontrol_info_info_openbsd_cpp
Normal file
318
x11/kde/base2/patches/patch-kcontrol_info_info_openbsd_cpp
Normal file
@ -0,0 +1,318 @@
|
||||
--- kcontrol/info/info_openbsd.cpp.orig Thu Oct 5 22:04:15 2000
|
||||
+++ kcontrol/info/info_openbsd.cpp Fri Oct 6 01:12:09 2000
|
||||
@@ -0,0 +1,315 @@
|
||||
+/*
|
||||
+ * $Id: patch-kcontrol_info_info_openbsd_cpp,v 1.1.1.1 2000/10/09 22:38:34 espie Exp $
|
||||
+ *
|
||||
+ * info_netbsd.cpp is part of the KDE program kcminfo. This displays
|
||||
+ * various information about the NetBSD system it's running on.
|
||||
+ *
|
||||
+ * Originally written by Jaromir Dolecek <dolecek@ics.muni.cz>. CPU info
|
||||
+ * code has been imported from implementation of processor.cpp for KDE 1.0
|
||||
+ * by David Brownlee <abs@NetBSD.org> as found in NetBSD packages collection.
|
||||
+ * Hubert Feyer <hubertf@NetBSD.org> enhanced the sound information printing
|
||||
+ * quite a lot, too.
|
||||
+ *
|
||||
+ * The code is placed into public domain. Do whatever you want with it.
|
||||
+ */
|
||||
+
|
||||
+#define INFO_CPU_AVAILABLE
|
||||
+#define INFO_IRQ_AVAILABLE
|
||||
+#define INFO_DMA_AVAILABLE
|
||||
+#define INFO_PCI_AVAILABLE
|
||||
+#define INFO_IOPORTS_AVAILABLE
|
||||
+#define INFO_SOUND_AVAILABLE
|
||||
+#define INFO_DEVICES_AVAILABLE
|
||||
+#define INFO_SCSI_AVAILABLE
|
||||
+#define INFO_PARTITIONS_AVAILABLE
|
||||
+#define INFO_XSERVER_AVAILABLE
|
||||
+
|
||||
+
|
||||
+/*
|
||||
+ * all following functions should return TRUE, when the Information
|
||||
+ * was filled into the lBox-Widget. Returning FALSE indicates that
|
||||
+ * information was not available.
|
||||
+ */
|
||||
+
|
||||
+#include <sys/types.h>
|
||||
+#include <sys/param.h>
|
||||
+#include <sys/sysctl.h>
|
||||
+#include <stdio.h> /* for NULL */
|
||||
+#include <stdlib.h> /* for malloc(3) */
|
||||
+
|
||||
+#include <qfile.h>
|
||||
+#include <qfontmetrics.h>
|
||||
+#include <qstrlist.h>
|
||||
+#include <qtextstream.h>
|
||||
+
|
||||
+#include <kdebug.h>
|
||||
+
|
||||
+typedef struct
|
||||
+ {
|
||||
+ int string;
|
||||
+ int name;
|
||||
+ const char *title;
|
||||
+ } hw_info_mib_list_t;
|
||||
+
|
||||
+bool GetInfo_CPU(QListView *lBox)
|
||||
+{
|
||||
+ static hw_info_mib_list_t hw_info_mib_list[]= {
|
||||
+ { 1, HW_MODEL, "Model" },
|
||||
+ { 1, HW_MACHINE, "Machine" },
|
||||
+ { 0, HW_NCPU, "Number of CPUs" },
|
||||
+ { 0, HW_PAGESIZE, "Pagesize" },
|
||||
+ { 0,0,0 }
|
||||
+ };
|
||||
+ hw_info_mib_list_t *hw_info_mib;
|
||||
+
|
||||
+ int mib[2], num;
|
||||
+ char *buf;
|
||||
+ size_t len;
|
||||
+ QString value;
|
||||
+
|
||||
+ lBox->addColumn(i18n("Information"));
|
||||
+ lBox->addColumn(i18n("Value"));
|
||||
+
|
||||
+ for ( hw_info_mib = hw_info_mib_list ; hw_info_mib->title ; ++hw_info_mib )
|
||||
+ {
|
||||
+ mib[0] = CTL_HW;
|
||||
+ mib[1] = hw_info_mib->name;
|
||||
+ if ( hw_info_mib->string ) {
|
||||
+ sysctl(mib,2,NULL,&len,NULL,0);
|
||||
+ if ( (buf = (char*)malloc(len)) ) {
|
||||
+ sysctl(mib,2,buf,&len,NULL,0);
|
||||
+ value = QString(buf);
|
||||
+ free(buf);
|
||||
+ }
|
||||
+ else {
|
||||
+ value = QString("Unknown");
|
||||
+ }
|
||||
+ }
|
||||
+ else {
|
||||
+ len = sizeof(num);
|
||||
+ sysctl(mib,2,&num,&len,NULL,0);
|
||||
+ value.sprintf("%d", num);
|
||||
+ }
|
||||
+ new QListViewItem(lBox, hw_info_mib->title, value);
|
||||
+ }
|
||||
+
|
||||
+ return true;
|
||||
+}
|
||||
+
|
||||
+// this is used to find out which devices are currently
|
||||
+// on system
|
||||
+static bool GetDmesgInfo(QListView *lBox, const char *filter,
|
||||
+ void func(QListView *, QString s, void **, bool))
|
||||
+{
|
||||
+ QFile *dmesg = new QFile("/var/run/dmesg.boot");
|
||||
+ bool usepipe=false;
|
||||
+ FILE *pipe=NULL;
|
||||
+ QTextStream *t;
|
||||
+ bool seencpu=false;
|
||||
+ void *opaque=NULL;
|
||||
+ QString s;
|
||||
+ bool found=false;
|
||||
+
|
||||
+ if (dmesg->exists() && dmesg->open(IO_ReadOnly)) {
|
||||
+ t = new QTextStream(dmesg);
|
||||
+ }
|
||||
+ else {
|
||||
+ delete dmesg;
|
||||
+ pipe = popen("/sbin/dmesg", "r");
|
||||
+ if (!pipe) return false;
|
||||
+ usepipe = true;
|
||||
+ t = new QTextStream(pipe, IO_ReadOnly);
|
||||
+ }
|
||||
+
|
||||
+ QListViewItem *olditem = NULL;
|
||||
+ while((s = t->readLine()) != "") {
|
||||
+ if (!seencpu) {
|
||||
+ if (s.contains("cpu"))
|
||||
+ seencpu = true;
|
||||
+ else
|
||||
+ continue;
|
||||
+ }
|
||||
+ if (s.contains("boot device") ||
|
||||
+ s.contains("WARNING: old BSD partition ID!"))
|
||||
+ break;
|
||||
+
|
||||
+ if (!filter || s.contains(filter)) {
|
||||
+ if (func) {
|
||||
+ func(lBox, s, &opaque, false);
|
||||
+ }
|
||||
+ else {
|
||||
+ olditem = new QListViewItem(lBox, olditem, s);
|
||||
+ }
|
||||
+ found = true;
|
||||
+ }
|
||||
+ }
|
||||
+ if (func) {
|
||||
+ func(lBox, s, &opaque, true);
|
||||
+ }
|
||||
+ //lBox->triggerUpdate();
|
||||
+
|
||||
+ delete t;
|
||||
+ if (pipe) {
|
||||
+ pclose(pipe);
|
||||
+ }
|
||||
+ else {
|
||||
+ dmesg->close();
|
||||
+ delete dmesg;
|
||||
+ }
|
||||
+
|
||||
+ return found;
|
||||
+}
|
||||
+
|
||||
+
|
||||
+void AddIRQLine(QListView *lBox, QString s, void **opaque, bool ending)
|
||||
+{
|
||||
+ QStrList *strlist = (QStrList *) *opaque;
|
||||
+ const char *str;
|
||||
+ int pos, irqnum=0;
|
||||
+ const char *p;
|
||||
+ p = s.latin1();
|
||||
+
|
||||
+ if (!strlist) {
|
||||
+ strlist = new QStrList();
|
||||
+ *opaque = (void *) strlist;
|
||||
+ }
|
||||
+ if (ending) {
|
||||
+ str = strlist->first();
|
||||
+ for(;str; str = strlist->next()) {
|
||||
+ new QListViewItem(lBox, str);
|
||||
+ }
|
||||
+ delete strlist;
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ pos = s.find(" irq ");
|
||||
+ irqnum = (pos < 0) ? 0 : atoi(&p[pos+5]);
|
||||
+ if (irqnum) {
|
||||
+ s.sprintf("%02d%s", irqnum, p);
|
||||
+ }
|
||||
+ else {
|
||||
+ s.sprintf("??%s", p);
|
||||
+ }
|
||||
+ strlist->inSort(s.latin1());
|
||||
+}
|
||||
+
|
||||
+bool GetInfo_IRQ (QListView *lBox)
|
||||
+{
|
||||
+ lBox->addColumn(i18n("IRQ"));
|
||||
+ lBox->addColumn(i18n("Device"));
|
||||
+ (void) GetDmesgInfo(lBox, " irq ", AddIRQLine);
|
||||
+ return true;
|
||||
+}
|
||||
+
|
||||
+bool GetInfo_DMA (QListView *)
|
||||
+{
|
||||
+ return false;
|
||||
+}
|
||||
+
|
||||
+bool GetInfo_PCI (QListView *lbox)
|
||||
+{
|
||||
+ if (!GetDmesgInfo(lbox, "at pci", NULL))
|
||||
+ new QListViewItem(lbox, i18n("No PCI devices found."));
|
||||
+ return true;
|
||||
+}
|
||||
+
|
||||
+bool GetInfo_IO_Ports (QListView *lbox)
|
||||
+{
|
||||
+ if (!GetDmesgInfo(lbox, "port 0x", NULL))
|
||||
+ new QListViewItem(lbox, i18n("No I/O port devices found."));
|
||||
+ return true;
|
||||
+}
|
||||
+
|
||||
+bool GetInfo_Sound (QListView *lbox)
|
||||
+{
|
||||
+ if (!GetDmesgInfo(lbox, "audio", NULL))
|
||||
+ new QListViewItem(lbox, i18n("No audio devices found."));
|
||||
+
|
||||
+ // append information on any audio devices found
|
||||
+ QListViewItem *lvitem = lbox->firstChild();
|
||||
+ for(; lvitem; lvitem = lvitem->nextSibling()) {
|
||||
+ QString s;
|
||||
+ int pos, len;
|
||||
+ const char *start, *end;
|
||||
+ char *dev;
|
||||
+
|
||||
+ s = lvitem->text(0);
|
||||
+ if ((pos = s.find("at ")) >= 0) {
|
||||
+ pos += 3; // skip "at "
|
||||
+ start = end = s.ascii();
|
||||
+ for(; (*end!=':') && (*end!='\n'); end++);
|
||||
+ len = end - start;
|
||||
+ dev = (char *) malloc(len + 1);
|
||||
+ strncpy(dev, start, len);
|
||||
+ dev[len] = '\0';
|
||||
+
|
||||
+ GetDmesgInfo(lbox, dev, NULL);
|
||||
+
|
||||
+ free(dev);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ return true;
|
||||
+}
|
||||
+
|
||||
+bool GetInfo_Devices (QListView *lBox)
|
||||
+{
|
||||
+ (void) GetDmesgInfo(lBox, NULL, NULL);
|
||||
+ return true;
|
||||
+}
|
||||
+
|
||||
+bool GetInfo_SCSI (QListView *lbox)
|
||||
+{
|
||||
+ if (!GetDmesgInfo(lbox, "scsibus", NULL))
|
||||
+ new QListViewItem(lbox, i18n("No SCSI devices found."));
|
||||
+ return true;
|
||||
+}
|
||||
+
|
||||
+bool GetInfo_Partitions (QListView *lbox)
|
||||
+{
|
||||
+ QString s;
|
||||
+ char *line, *orig_line;
|
||||
+ const char *device, *mountpoint, *type, *flags;
|
||||
+ FILE *pipe = popen("/sbin/mount", "r");
|
||||
+ QTextStream *t;
|
||||
+
|
||||
+ if (!pipe) {
|
||||
+ kdError(0) << i18n("Ahh couldn't run /sbin/mount!") << endl;
|
||||
+ return false;
|
||||
+ }
|
||||
+ t = new QTextStream(pipe, IO_ReadOnly);
|
||||
+
|
||||
+ lbox->addColumn(i18n("Device"));
|
||||
+ lbox->addColumn(i18n("Mount Point"));
|
||||
+ lbox->addColumn(i18n("FS Type"));
|
||||
+ lbox->addColumn(i18n("Mount Options"));
|
||||
+
|
||||
+ QListViewItem *olditem = 0;
|
||||
+ while ((s = t->readLine()) != "") {
|
||||
+ orig_line = line = strdup(s.latin1());
|
||||
+
|
||||
+ device = strsep(&line, " ");
|
||||
+
|
||||
+ (void) strsep(&line, " "); // cosume word "on"
|
||||
+ mountpoint = strsep(&line, " ");
|
||||
+
|
||||
+ (void) strsep(&line, " "); // cosume word "type"
|
||||
+ type = strsep(&line, " ");
|
||||
+
|
||||
+ flags = line;
|
||||
+
|
||||
+ olditem = new QListViewItem(lbox, olditem, device, mountpoint,
|
||||
+ type, flags);
|
||||
+
|
||||
+ free(orig_line);
|
||||
+ }
|
||||
+
|
||||
+ delete t;
|
||||
+ pclose(pipe);
|
||||
+ return true;
|
||||
+}
|
||||
+
|
||||
+bool GetInfo_XServer_and_Video (QListView *lBox)
|
||||
+{
|
||||
+ return GetInfo_XServer_Generic( lBox );
|
||||
+}
|
37
x11/kde/base2/patches/patch-kdm_kgreeter_cpp
Normal file
37
x11/kde/base2/patches/patch-kdm_kgreeter_cpp
Normal file
@ -0,0 +1,37 @@
|
||||
--- kdm/kgreeter.cpp.orig Thu Sep 28 13:09:20 2000
|
||||
+++ kdm/kgreeter.cpp Thu Sep 28 13:52:18 2000
|
||||
@@ -77,9 +77,11 @@ extern "C" {
|
||||
#if defined(HAVE_LOGIN_CAP_H) && !defined(__NetBSD__)
|
||||
#define USE_LOGIN_CAP 1
|
||||
#include <login_cap.h>
|
||||
-#ifdef __bsdi__
|
||||
+#if defined(__bsdi__)
|
||||
// This only works / is needed on BSDi
|
||||
struct login_cap_t *lc;
|
||||
+#elif defined(__OpenBSD__)
|
||||
+ login_cap_t *lc;
|
||||
#else
|
||||
struct login_cap *lc;
|
||||
#endif
|
||||
@@ -524,7 +526,7 @@ KGreeter::restrict()
|
||||
#endif
|
||||
|
||||
#ifdef USE_LOGIN_CAP
|
||||
-#ifdef __bsdi__
|
||||
+#if defined(__bsdi__) || defined(__OpenBSD__)
|
||||
lc = login_getclass(pwd->pw_class);
|
||||
#else
|
||||
lc = login_getpwclass(pwd);
|
||||
@@ -552,10 +554,12 @@ KGreeter::restrict_time()
|
||||
// don't deny a root log in
|
||||
if (!pwd->pw_uid) return false;
|
||||
|
||||
+#if !defined(__OpenBSD__)
|
||||
if(!auth_timeok(lc, time(NULL))) {
|
||||
KMessageBox::sorry(this, i18n("Logins not available right now."));
|
||||
return true;
|
||||
}
|
||||
+#endif
|
||||
#endif
|
||||
return false;
|
||||
}
|
11
x11/kde/base2/patches/patch-kdm_session_c
Normal file
11
x11/kde/base2/patches/patch-kdm_session_c
Normal file
@ -0,0 +1,11 @@
|
||||
--- kdm/session.c.orig Thu Sep 28 14:01:34 2000
|
||||
+++ kdm/session.c Thu Sep 28 14:01:51 2000
|
||||
@@ -759,7 +759,7 @@ StartClient (verify, d, pidp, name, pass
|
||||
pwd = getpwnam(name);
|
||||
if (pwd)
|
||||
{
|
||||
-#ifdef __bsdi__
|
||||
+#if defined(__bsdi__) || defined(__OpenBSD__)
|
||||
lc = login_getclass(pwd->pw_class);
|
||||
#else
|
||||
lc = login_getpwclass(pwd);
|
20
x11/kde/base2/patches/patch-konsole_src_TEPty_C
Normal file
20
x11/kde/base2/patches/patch-konsole_src_TEPty_C
Normal file
@ -0,0 +1,20 @@
|
||||
--- konsole/src/TEPty.C.orig Tue Sep 26 18:27:48 2000
|
||||
+++ konsole/src/TEPty.C Tue Sep 26 18:34:09 2000
|
||||
@@ -461,7 +461,7 @@ void TEPty::makePty(const char* dev, con
|
||||
// #define CERASE 0177
|
||||
// #endif
|
||||
|
||||
-#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__bsdi__)
|
||||
+#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__)
|
||||
ioctl(0,TIOCGETA,(char *)&ttmode);
|
||||
#else
|
||||
# if defined (_HPUX_SOURCE) || defined(__Lynx__)
|
||||
@@ -473,7 +473,7 @@ void TEPty::makePty(const char* dev, con
|
||||
ttmode.c_cc[VINTR] = CTRL('C');
|
||||
ttmode.c_cc[VQUIT] = CTRL('\\');
|
||||
ttmode.c_cc[VERASE] = 0177;
|
||||
-#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__bsdi__)
|
||||
+#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__)
|
||||
ioctl(0,TIOCSETA,(char *)&ttmode);
|
||||
#else
|
||||
# ifdef _HPUX_SOURCE
|
1
x11/kde/base2/pkg/COMMENT
Normal file
1
x11/kde/base2/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
X11 toolkit, basic applications
|
10
x11/kde/base2/pkg/DESCR
Normal file
10
x11/kde/base2/pkg/DESCR
Normal file
@ -0,0 +1,10 @@
|
||||
KDE is a network transparent contemporary desktop environment for UNIX
|
||||
workstations. It was written by a world-wide network of software
|
||||
engineers committed to free software development. KDE seeks to fill
|
||||
the need for an easy to use desktop for Unix workstations, similar to
|
||||
the desktop environments found under the MacOS or Window95/NT.
|
||||
|
||||
KDE2 is an almost complete rewrite of kde1. This port is not yet complete,
|
||||
nor perfectly usable, as kde2 is reaching completion.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
95
x11/kde/base2/pkg/PFRAG.shared
Normal file
95
x11/kde/base2/pkg/PFRAG.shared
Normal file
@ -0,0 +1,95 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2000/10/09 22:38:38 espie Exp $
|
||||
lib/libappletproxy.so.0.0
|
||||
lib/libclockapplet.so.1.0
|
||||
lib/libhtmlsearch.so.0.0
|
||||
lib/libkcm_access.so.0.0
|
||||
lib/libkcm_arts.so.0.0
|
||||
lib/libkcm_background.so.0.0
|
||||
lib/libkcm_bell.so.0.0
|
||||
lib/libkcm_clock.so.0.0
|
||||
lib/libkcm_colors.so.0.0
|
||||
lib/libkcm_crypto.so.0.0
|
||||
lib/libkcm_email.so.0.0
|
||||
lib/libkcm_energy.so.0.0
|
||||
lib/libkcm_filetypes.so.0.0
|
||||
lib/libkcm_fonts.so.0.0
|
||||
lib/libkcm_htmlsearch.so.0.0
|
||||
lib/libkcm_icons.so.0.0
|
||||
lib/libkcm_iconthemes.so.0.0
|
||||
lib/libkcm_info.so.0.0
|
||||
lib/libkcm_input.so.0.0
|
||||
lib/libkcm_kdm.so.0.0
|
||||
lib/libkcm_keys.so.0.0
|
||||
lib/libkcm_khotkeys.so.0.0
|
||||
lib/libkcm_kicker.so.0.0
|
||||
lib/libkcm_kio.so.0.0
|
||||
lib/libkcm_knotify.so.0.0
|
||||
lib/libkcm_konq.so.0.0
|
||||
lib/libkcm_konqhtml.so.0.0
|
||||
lib/libkcm_kurifilt.so.0.0
|
||||
lib/libkcm_kwindesktop.so.0.0
|
||||
lib/libkcm_kwinmouse.so.0.0
|
||||
lib/libkcm_kwinoptions.so.0.0
|
||||
lib/libkcm_layout.so.0.0
|
||||
lib/libkcm_locale.so.0.0
|
||||
lib/libkcm_nsplugin.so.0.0
|
||||
lib/libkcm_passwords.so.0.0
|
||||
lib/libkcm_samba.so.0.0
|
||||
lib/libkcm_screensaver.so.0.0
|
||||
lib/libkcm_style.so.0.0
|
||||
lib/libkcm_taskbar.so.0.0
|
||||
lib/libkcm_virtualdesktops.so.0.0
|
||||
lib/libkcm_xmlrpcd.so.0.0
|
||||
lib/libkcminit.so.0.0
|
||||
lib/libkcmshell.so.0.0
|
||||
lib/libkcontrol.so.0.0
|
||||
lib/libkdesktop.so.0.0
|
||||
lib/libkfmclient.so.0.0
|
||||
lib/libkhelpcenter.so.1.0
|
||||
lib/libkhotkeys.so.0.0
|
||||
lib/libkicker.so.0.0
|
||||
lib/libkio_gopher.so.0.0
|
||||
lib/libkio_gzip.so.0.0
|
||||
lib/libkio_help.so.0.0
|
||||
lib/libkio_info.so.0.0
|
||||
lib/libkio_man.so.0.0
|
||||
lib/libkio_nfs.so.0.0
|
||||
lib/libkio_nntp.so.0.0
|
||||
lib/libkio_pop3.so.0.0
|
||||
lib/libkio_smb.so.0.0
|
||||
lib/libkio_smtp.so.0.0
|
||||
lib/libkio_tar.so.0.0
|
||||
lib/libklegacyimport.so.0.0
|
||||
lib/libklipper.so.0.0
|
||||
lib/libkmenuedit.so.0.0
|
||||
lib/libkminipagerapplet.so.1.0
|
||||
lib/libkonq.so.3.0
|
||||
lib/libkonqdirtree.so.0.0
|
||||
lib/libkonqiconview.so.0.0
|
||||
lib/libkonqlistview.so.0.0
|
||||
lib/libkonqueror.so.0.0
|
||||
lib/libkonsole.so.0.0
|
||||
lib/libkonsolepart.so.0.0
|
||||
lib/libkrunapplet.so.1.0
|
||||
lib/libkshorturifilter.so.1.0
|
||||
lib/libksystemtrayapplet.so.1.0
|
||||
lib/libktaskbarapplet.so.1.0
|
||||
lib/libkuriikwsfilter.so.1.0
|
||||
lib/libkurisearchfilter.so.1.0
|
||||
lib/libkwin.so.0.0
|
||||
lib/libkwinb2.so.0.0
|
||||
lib/libkwindefault.so.0.0
|
||||
lib/libkwinkde1.so.0.0
|
||||
lib/libkwinkstep.so.0.0
|
||||
lib/libkwinlaptop.so.0.0
|
||||
lib/libkwinmodernsys.so.0.0
|
||||
lib/libkwinriscos.so.0.0
|
||||
lib/libkwinsystem.so.0.0
|
||||
lib/libkwrite.so.0.0
|
||||
lib/libkwrited.so.0.0
|
||||
lib/libkwritepart.so.0.0
|
||||
lib/libkxmlrpcd.so.0.0
|
||||
lib/libnsplugin.so.1.1
|
||||
lib/libquicklauncher.so.1.0
|
||||
lib/libsmb++.so.0.9
|
||||
DYNLIBDIR(%D/lib)
|
2163
x11/kde/base2/pkg/PLIST
Normal file
2163
x11/kde/base2/pkg/PLIST
Normal file
File diff suppressed because it is too large
Load Diff
3
x11/kde/base2/pkg/SECURITY
Normal file
3
x11/kde/base2/pkg/SECURITY
Normal file
@ -0,0 +1,3 @@
|
||||
$OpenBSD: SECURITY,v 1.1.1.1 2000/10/09 22:38:38 espie Exp $
|
||||
|
||||
Work in progress, a lot of mktemp holes closed, but a lot remaining probably.
|
Loading…
Reference in New Issue
Block a user