kdeadmin3 stable port information

Package: kdeadmin3
Version: 3.5.10
Revision: 1
Description: KDE - miscellaneous administrative tools
License: GPL/LGPL
Maintainer: Benjamin Reed

Depends: <<
kcron (>= %v-%r),
kpackage (>= %v-%r),
secpolicy (>= %v-%r)
<<
BuildDepends: <<
arts-dev (>= 1.5.10-1),
autoconf (>= 2.60-1),
cctools-single-module,
expat1,
fink (>= 0.28.0-1),
freetype219 (>= 2.3.7-7),
gettext-bin,
gettext-tools,
kdebase3-unified-dev (>= %v-1),
kdelibs3-unified-dev (>= %v-1),
libart2 (>= 2.3.19-1),
libgettext3-dev,
libiconv-dev,
libidn,
libjpeg,
libpng3 (>= 1.2.8-1),
pkgconfig (>= 0.22-3),
qt3 (>= 3.3.8-1027),
unsermake (>= 0.4-0.20060316.1),
x11-dev,
xmkmf
<<
Replaces: %N-dev (<< %v-%r)
GCC: 4.0

CustomMirror: <<
Primary: http://ranger.users.finkproject.org/distfiles
eur-NL: http://ranger.users.finkproject.org/distfiles
nam-US: http://ranger.befunk.com/fink
nam-US: http://astrange.ithinksw.net/~astrange/ranger-fink
nam-CA: http://www.southofheaven.net/befunk
<<
Source: mirror:kde:stable/%v/src/kdeadmin-%v.tar.bz2
Source-MD5: eb23c52c945f31a48f2c9df4330a1262
Source2: mirror:custom:kde-admindir/kde-admindir-1605.tar.bz2
Source2-MD5: e2dccadc3d36718ef9a7e3c7789e2bdf
Source2ExtractDir: kdeadmin-%v
SourceDirectory: kdeadmin-%v
PatchScript: <<
sed -e 's,@PREFIX@,%p,g' %{PatchFile} | patch -p1
perl -pi -e 's,-O2,-Os,g; s,doc/HTML,doc/kde,g; s,/usr/share/doc/packages/qt3/html,%p/share/doc/qt3/html,g;' admin/*
<<
PatchFile: %n.patch
PatchFile-MD5: f5a3c4c547ac7fc82b39893d0a982a29

NoSetCPPFLAGS: true
NoSetLDFLAGS: true
ConfigureParams: --with-distribution='Fink/Mac OS X'
CompileScript: <<
#!/bin/sh -ev

export PREFIX="%p" USE_UNSERMAKE=1
. ./environment-helper.sh

./build-helper.sh cvs %N %v %r make -f admin/Makefile.common cvs
./build-helper.sh configure %N %v %r ./configure %c $CONFIGURE_PARAMS
./build-helper.sh make %N %v %r unsermake $UNSERMAKEFLAGS
<<

InstallScript: <<
#!/bin/sh -ev

export PREFIX="%p" USE_UNSERMAKE=1
. ./environment-helper.sh

./build-helper.sh install %N %v %r unsermake -p -j1 install DESTDIR=%d

rm -rf %i/share/doc/kde/en/kdat
rm -rf %i/share/doc/kde/en/ksysv
rm -rf %i/share/doc/kde/en/kuser
rm -rf %i/share/doc/kde/en/*lilo*
rm -rf %i/share/doc/kde/en/k*networkconf

mkdir -p %i/share/doc/installed-packages
touch %i/share/doc/installed-packages/%N
touch %i/share/doc/installed-packages/%N-base
<<
DocFiles: AUTHORS COPYING INSTALL README
SplitOff: <<
Package: kcron
Description: KDE - crontab editor
Depends: %N-base (>= %v-%r)
Replaces: %N (<< %v-%r)
Recommends: %N (>= %v-%r)
Files: <<
bin/kcron
share/applications/kde/kcron*
share/apps/kcron
share/doc/kde/en/kcron
share/icons/hicolor/16x16/apps/kcron.png
share/icons/hicolor/22x22/apps/kcron.png
share/icons/hicolor/32x32/apps/kcron.png
<<
DescDetail: <<
KCron is an application for scheduling programs to run in the
background. It is a graphical user interface to cron, the
UNIX system scheduler.
<<
DescUsage: <<
---[ Installation ]---------------------------------------------------

To install all of the official KDE packages, install "bundle-kde" or
"bundle-kde-ssl" (depending on whether crypotgraphic laws permit
downloading strong cryptography). Unless you have a specific reason
not to, "bundle-kde-ssl" is suggested.

---[ Configuration ]--------------------------------------------------

To use KDE as your windowing system in XDarwin, create a file called
".xinitrc" in your home directory, containing the following line:

/sw/bin/startkde >/tmp/kde.log 2>&1

See http://fink.sourceforge.net/doc/x11/run-xfree86.php#xinitrc
for more information on the xinitrc files and how they work.

If you want to use Apple's X11 instead of the KDE window manager,
put the following line before the startkde line in .xinitrc:

export KDEWM=quartz-wm

If you want to disable quartz-wm even for clipboard synchronization
(proxying), put the following line before the startkde line in
.xinitrc:

export DISABLE_PROXY=1

---[ Startup ]--------------------------------------------------------

Once you have created an ~/.xinitrc file, you should be able to start
KDE by clicking on the "XDarwin" icon in your Applications folder.

NOTE: By default, X11 on Mac OS X runs in "rootless" mode, generally.
If you run KDE in rootless mode, it will take over your desktop with
a window that covers everything up. You can remove this by disabling
desktop icons in the KDE control center. Open the control center
(either from the "K" menu bar, or by typing "kcontrol" in an xterm)
then expand the "Desktop" list, click "Behavior", and uncheck the
"Show icons on desktop" checkbox.

---[ Removal ]--------------------------------------------------------

To remove all of the official KDE packages, you can remove the KDE
libraries and anything that depends on them by running, in a terminal:

sudo apt-get remove kdelibs3-unified-shlibs

To remove an individual KDE package collection (like kdenetwork3 or
kdesdk3) you can generally remove [package]-base. For example, to
remove all of the kdenetwork3 packages, run:

sudo apt-get remove kdenetwork3-base
<<
<<
SplitOff2: <<
Package: kpackage
Description: KDE - software package tool
Depends: <<
apt,
%N-base (>= %v-%r)
<<
Replaces: %N (<< %v-%r)
Recommends: %N (>= %v-%r)
Files: <<
bin/kpackage
lib/kde3/kfile_deb.*
lib/kde3/kfile_rpm.*
share/applications/kde/kpackage*
share/apps/kpackage
share/doc/kde/en/kpackage
share/icons/hicolor/128x128/apps/kpackage.png
share/icons/hicolor/16x16/apps/kpackage.png
share/icons/hicolor/22x22/apps/kpackage.png
share/icons/hicolor/32x32/apps/kpackage.png
share/icons/hicolor/48x48/apps/kpackage.png
share/icons/hicolor/64x64/apps/kpackage.png
share/services/kfile_deb.*
share/services/kfile_rpm.*
<<
DescDetail: <<
This is a frontend to both .rpm and .deb package formats. It allows
you to view currently installed packages, browse available packages,
and install/remove them.
<<
DescUsage: <<
---[ Installation ]---------------------------------------------------

To install all of the official KDE packages, install "bundle-kde" or
"bundle-kde-ssl" (depending on whether crypotgraphic laws permit
downloading strong cryptography). Unless you have a specific reason
not to, "bundle-kde-ssl" is suggested.

---[ Configuration ]--------------------------------------------------

To use KDE as your windowing system in XDarwin, create a file called
".xinitrc" in your home directory, containing the following line:

/sw/bin/startkde >/tmp/kde.log 2>&1

See http://fink.sourceforge.net/doc/x11/run-xfree86.php#xinitrc
for more information on the xinitrc files and how they work.

If you want to use Apple's X11 instead of the KDE window manager,
put the following line before the startkde line in .xinitrc:

export KDEWM=quartz-wm

If you want to disable quartz-wm even for clipboard synchronization
(proxying), put the following line before the startkde line in
.xinitrc:

export DISABLE_PROXY=1

---[ Startup ]--------------------------------------------------------

Once you have created an ~/.xinitrc file, you should be able to start
KDE by clicking on the "XDarwin" icon in your Applications folder.

NOTE: By default, X11 on Mac OS X runs in "rootless" mode, generally.
If you run KDE in rootless mode, it will take over your desktop with
a window that covers everything up. You can remove this by disabling
desktop icons in the KDE control center. Open the control center
(either from the "K" menu bar, or by typing "kcontrol" in an xterm)
then expand the "Desktop" list, click "Behavior", and uncheck the
"Show icons on desktop" checkbox.

---[ Removal ]--------------------------------------------------------

To remove all of the official KDE packages, you can remove the KDE
libraries and anything that depends on them by running, in a terminal:

sudo apt-get remove kdelibs3-unified-shlibs

To remove an individual KDE package collection (like kdenetwork3 or
kdesdk3) you can generally remove [package]-base. For example, to
remove all of the kdenetwork3 packages, run:

sudo apt-get remove kdenetwork3-base
<<
<<
SplitOff3: <<
Package: secpolicy
Description: KDE - PAM security policy viewer
Depends: %N-base (>= %v-%r)
Recommends: %N (>= %v-%r)
Files: bin/secpolicy
DescDetail: <<
This tool allows you to manipulate the PAM configuration
files for each "service" you have created to use PAM.
<<
DescUsage: <<
---[ Installation ]---------------------------------------------------

To install all of the official KDE packages, install "bundle-kde" or
"bundle-kde-ssl" (depending on whether crypotgraphic laws permit
downloading strong cryptography). Unless you have a specific reason
not to, "bundle-kde-ssl" is suggested.

---[ Configuration ]--------------------------------------------------

To use KDE as your windowing system in XDarwin, create a file called
".xinitrc" in your home directory, containing the following line:

/sw/bin/startkde >/tmp/kde.log 2>&1

See http://fink.sourceforge.net/doc/x11/run-xfree86.php#xinitrc
for more information on the xinitrc files and how they work.

If you want to use Apple's X11 instead of the KDE window manager,
put the following line before the startkde line in .xinitrc:

export KDEWM=quartz-wm

If you want to disable quartz-wm even for clipboard synchronization
(proxying), put the following line before the startkde line in
.xinitrc:

export DISABLE_PROXY=1

---[ Startup ]--------------------------------------------------------

Once you have created an ~/.xinitrc file, you should be able to start
KDE by clicking on the "XDarwin" icon in your Applications folder.

NOTE: By default, X11 on Mac OS X runs in "rootless" mode, generally.
If you run KDE in rootless mode, it will take over your desktop with
a window that covers everything up. You can remove this by disabling
desktop icons in the KDE control center. Open the control center
(either from the "K" menu bar, or by typing "kcontrol" in an xterm)
then expand the "Desktop" list, click "Behavior", and uncheck the
"Show icons on desktop" checkbox.

---[ Removal ]--------------------------------------------------------

To remove all of the official KDE packages, you can remove the KDE
libraries and anything that depends on them by running, in a terminal:

sudo apt-get remove kdelibs3-unified-shlibs

To remove an individual KDE package collection (like kdenetwork3 or
kdesdk3) you can generally remove [package]-base. For example, to
remove all of the kdenetwork3 packages, run:

sudo apt-get remove kdenetwork3-base
<<
<<
SplitOff4: <<
Package: %N-base
Description: KDE - kdeadmin base package
Depends: kdebase3-unified (>= %v-1)
Replaces: %N (<< %v-%r)
Recommends: %N (>= %v-%r)
Files: share/doc/installed-packages/%N-base
DescUsage: <<
---[ Installation ]---------------------------------------------------

To install all of the official KDE packages, install "bundle-kde" or
"bundle-kde-ssl" (depending on whether crypotgraphic laws permit
downloading strong cryptography). Unless you have a specific reason
not to, "bundle-kde-ssl" is suggested.

---[ Configuration ]--------------------------------------------------

To use KDE as your windowing system in XDarwin, create a file called
".xinitrc" in your home directory, containing the following line:

/sw/bin/startkde >/tmp/kde.log 2>&1

See http://fink.sourceforge.net/doc/x11/run-xfree86.php#xinitrc
for more information on the xinitrc files and how they work.

If you want to use Apple's X11 instead of the KDE window manager,
put the following line before the startkde line in .xinitrc:

export KDEWM=quartz-wm

If you want to disable quartz-wm even for clipboard synchronization
(proxying), put the following line before the startkde line in
.xinitrc:

export DISABLE_PROXY=1

---[ Startup ]--------------------------------------------------------

Once you have created an ~/.xinitrc file, you should be able to start
KDE by clicking on the "XDarwin" icon in your Applications folder.

NOTE: By default, X11 on Mac OS X runs in "rootless" mode, generally.
If you run KDE in rootless mode, it will take over your desktop with
a window that covers everything up. You can remove this by disabling
desktop icons in the KDE control center. Open the control center
(either from the "K" menu bar, or by typing "kcontrol" in an xterm)
then expand the "Desktop" list, click "Behavior", and uncheck the
"Show icons on desktop" checkbox.

---[ Removal ]--------------------------------------------------------

To remove all of the official KDE packages, you can remove the KDE
libraries and anything that depends on them by running, in a terminal:

sudo apt-get remove kdelibs3-unified-shlibs

To remove an individual KDE package collection (like kdenetwork3 or
kdesdk3) you can generally remove [package]-base. For example, to
remove all of the kdenetwork3 packages, run:

sudo apt-get remove kdenetwork3-base
<<
<<

PostInstScript: <<
if [ -x "%p/bin/kde-update-caches.sh" ]; then
%p/bin/kde-update-caches.sh >/dev/null 2>&1 || :
fi
<<

Homepage: http://www.kde.org/
DescDetail: <<
Various miscellaneous administrative tools for KDE.

Install the kdeadmin3 package if you want to install all of the
kdeadmin packages.
<<
DescUsage: <<
---[ Installation ]---------------------------------------------------

To install all of the official KDE packages, install "bundle-kde" or
"bundle-kde-ssl" (depending on whether crypotgraphic laws permit
downloading strong cryptography). Unless you have a specific reason
not to, "bundle-kde-ssl" is suggested.

---[ Configuration ]--------------------------------------------------

To use KDE as your windowing system in XDarwin, create a file called
".xinitrc" in your home directory, containing the following line:

/sw/bin/startkde >/tmp/kde.log 2>&1

See http://fink.sourceforge.net/doc/x11/run-xfree86.php#xinitrc
for more information on the xinitrc files and how they work.

If you want to use Apple's X11 instead of the KDE window manager,
put the following line before the startkde line in .xinitrc:

export KDEWM=quartz-wm

If you want to disable quartz-wm even for clipboard synchronization
(proxying), put the following line before the startkde line in
.xinitrc:

export DISABLE_PROXY=1

---[ Startup ]--------------------------------------------------------

Once you have created an ~/.xinitrc file, you should be able to start
KDE by clicking on the "XDarwin" icon in your Applications folder.

NOTE: By default, X11 on Mac OS X runs in "rootless" mode, generally.
If you run KDE in rootless mode, it will take over your desktop with
a window that covers everything up. You can remove this by disabling
desktop icons in the KDE control center. Open the control center
(either from the "K" menu bar, or by typing "kcontrol" in an xterm)
then expand the "Desktop" list, click "Behavior", and uncheck the
"Show icons on desktop" checkbox.

---[ Removal ]--------------------------------------------------------

To remove all of the official KDE packages, you can remove the KDE
libraries and anything that depends on them by running, in a terminal:

sudo apt-get remove kdelibs3-unified-shlibs

To remove an individual KDE package collection (like kdenetwork3 or
kdesdk3) you can generally remove [package]-base. For example, to
remove all of the kdenetwork3 packages, run:

sudo apt-get remove kdenetwork3-base
<<

kdeadmin3 stable port .patch

diff -uNbwr kdeadmin-3.5.9/configure.in.in kdeadmin-3.5.9-new/configure.in.in
--- kdeadmin-3.5.9/configure.in.in 2005-09-10 04:14:36.000000000 -0400
+++ kdeadmin-3.5.9-new/configure.in.in 2008-02-13 21:56:22.000000000 -0500
@@ -8,3 +8,5 @@
AC_CHECK_HEADERS(sys/stropts.h stropts.h)
AC_CHECK_HEADERS(sys/time.h)
AC_HEADER_TIME
+
+DO_NOT_COMPILE="$DO_NOT_COMPILE kdat ksysv lilo-config kuser knetworkconf"
diff -Nurd kdeadmin-3.5.10/kcron/Makefile.am kdeadmin-3.5.10-new/kcron/Makefile.am
--- kdeadmin-3.5.10/kcron/Makefile.am 2005-09-10 04:14:36.000000000 -0400
+++ kdeadmin-3.5.10-new/kcron/Makefile.am 2010-07-25 11:43:33.000000000 -0400
@@ -102,7 +102,7 @@
messages: rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/kcron.pot

-kcron_LDADD = $(LIB_KFILE) -lkdeprint
+kcron_LDADD = $(LIB_KFILE) -lkdeprint $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI)

xdg_apps_DATA = kcron.desktop

diff -Nurd kdeadmin-3.5.10/kfile-plugins/deb/Makefile.am kdeadmin-3.5.10-new/kfile-plugins/deb/Makefile.am
--- kdeadmin-3.5.10/kfile-plugins/deb/Makefile.am 2005-09-10 04:14:31.000000000 -0400
+++ kdeadmin-3.5.10-new/kfile-plugins/deb/Makefile.am 2010-07-25 11:40:43.000000000 -0400
@@ -10,7 +10,7 @@

kfile_deb_la_SOURCES = kfile_deb.cpp
kfile_deb_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)
-kfile_deb_la_LIBADD = $(LIB_KSYCOCA)
+kfile_deb_la_LIBADD = $(LIB_KSYCOCA) $(LIB_QT) $(LIB_KDECORE)

# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO
diff -Nurd kdeadmin-3.5.10/kfile-plugins/rpm/Makefile.am kdeadmin-3.5.10-new/kfile-plugins/rpm/Makefile.am
--- kdeadmin-3.5.10/kfile-plugins/rpm/Makefile.am 2005-09-10 04:14:31.000000000 -0400
+++ kdeadmin-3.5.10-new/kfile-plugins/rpm/Makefile.am 2010-07-25 11:40:00.000000000 -0400
@@ -10,7 +10,7 @@

kfile_rpm_la_SOURCES = kfile_rpm.cpp
kfile_rpm_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)
-kfile_rpm_la_LIBADD = $(LIB_KSYCOCA)
+kfile_rpm_la_LIBADD = $(LIB_KSYCOCA) $(LIB_KDECORE) $(LIB_QT)

# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO
diff -Nurd kdeadmin-3.5.10/kpackage/Makefile.am kdeadmin-3.5.10-new/kpackage/Makefile.am
--- kdeadmin-3.5.10/kpackage/Makefile.am 2005-09-10 04:14:31.000000000 -0400
+++ kdeadmin-3.5.10-new/kpackage/Makefile.am 2010-07-25 11:39:09.000000000 -0400
@@ -24,7 +24,7 @@

# the libraries to link against. Be aware of the order. First the libraries,
# that depend on the following ones.
-kpackage_LDADD = $(LIB_KFILE) $(LIBINTL) $(LIBZ) $(LIBUTEMPTER)
+kpackage_LDADD = $(LIB_KFILE) $(LIBINTL) $(LIBZ) $(LIBUTEMPTER) $(LIB_QT) $(LIB_KDEUI) $(LIB_KDECORE)

INCLUDES = $(all_includes)

diff -uNbwr kdeadmin-3.5.9/kpackage/debAptInterface.cpp kdeadmin-3.5.9-new/kpackage/debAptInterface.cpp
--- kdeadmin-3.5.9/kpackage/debAptInterface.cpp 2006-10-01 13:22:11.000000000 -0400
+++ kdeadmin-3.5.9-new/kpackage/debAptInterface.cpp 2008-02-13 21:56:22.000000000 -0500
@@ -493,7 +493,7 @@
QStringList DEBAPT::readAptF()
{
QStringList lines;
- QFile file( "/etc/apt/sources.list" );
+ QFile file( "@PREFIX@/etc/apt/sources.list" );
if ( file.open( IO_ReadOnly ) ) {
QTextStream stream( &file );
QString line;
@@ -521,8 +521,8 @@
cmd += s;
cmd += "\n";
}
- cmd += "' > /etc/apt/sources.list.n; if [ $? = 0 ]; then ";
- cmd += "mv /etc/apt/sources.list /etc/apt/sources.list.b; mv /etc/apt/sources.list.n /etc/apt/sources.list; fi\" ";
+ cmd += "' > @PREFIX@/etc/apt/sources.list.n; if [ $? = 0 ]; then ";
+ cmd += "mv @PREFIX@/etc/apt/sources.list @PREFIX@/etc/apt/sources.list.b; mv @PREFIX@/etc/apt/sources.list.n @PREFIX@/etc/apt/sources.list; fi\" ";


QStringList rlist = kpty->run(cmd,TRUE,TRUE);
diff -uNbwr kdeadmin-3.5.9/kpackage/debAptInterface.h kdeadmin-3.5.9-new/kpackage/debAptInterface.h
--- kdeadmin-3.5.9/kpackage/debAptInterface.h 2005-10-10 10:53:28.000000000 -0400
+++ kdeadmin-3.5.9-new/kpackage/debAptInterface.h 2008-02-13 21:56:22.000000000 -0500
@@ -33,7 +33,7 @@

#include "debInterface.h"

-#define APT_SOURCE "/etc/apt/sources.list"
+#define APT_SOURCE "@PREFIX@/etc/apt/sources.list"

class DEBAPT: public DEB
{
diff -uNbwr kdeadmin-3.5.9/kpackage/debInterface.cpp kdeadmin-3.5.9-new/kpackage/debInterface.cpp
--- kdeadmin-3.5.9/kpackage/debInterface.cpp 2006-10-01 13:22:11.000000000 -0400
+++ kdeadmin-3.5.9-new/kpackage/debInterface.cpp 2008-02-13 21:56:22.000000000 -0500
@@ -408,7 +408,7 @@
QStringList ret;
QString name = p->getProperty("name");

- from = "zcat /usr/share/doc/";
+ from = "zcat @PREFIX@/share/doc/";
from += name;
from += "/changelog.Debian.gz";

@@ -417,7 +417,7 @@
if (!kpty->Result)
return ret;
else {
- from = "zcat /usr/share/doc/";
+ from = "zcat @PREFIX@/share/doc/";
from += name;
from += "/changelog.gz";

diff -uNbwr kdeadmin-3.5.9/kpackage/debInterface.h kdeadmin-3.5.9-new/kpackage/debInterface.h
--- kdeadmin-3.5.9/kpackage/debInterface.h 2005-10-10 10:53:28.000000000 -0400
+++ kdeadmin-3.5.9-new/kpackage/debInterface.h 2008-02-13 21:56:22.000000000 -0500
@@ -45,10 +45,10 @@
class updateLoc;
class cacheObj;

-#define AVAIL "/var/lib/dpkg/available"
-#define STATUS "/var/lib/dpkg/status"
+#define AVAIL "@PREFIX@/var/lib/dpkg/available"
+#define STATUS "@PREFIX@/var/lib/dpkg/status"

-#define INFODIR "/var/lib/dpkg/info/"
+#define INFODIR "@PREFIX@/var/lib/dpkg/info/"


class DEB: public pkgInterface
diff -Nurd kdeadmin-3.5.10/secpolicy/Makefile.am kdeadmin-3.5.10-new/secpolicy/Makefile.am
--- kdeadmin-3.5.10/secpolicy/Makefile.am 2005-09-10 04:14:29.000000000 -0400
+++ kdeadmin-3.5.10-new/secpolicy/Makefile.am 2010-07-25 11:37:42.000000000 -0400
@@ -3,7 +3,7 @@

bin_PROGRAMS = secpolicy
secpolicy_SOURCES = main.cpp secpolicywin.cpp pamview.cpp ppitem.cpp
-secpolicy_LDADD = $(LIB_KIO)
+secpolicy_LDADD = $(LIB_KIO) $(LIB_QT) $(LIB_KDEUI) $(LIB_KDECORE)
secpolicy_LDFLAGS = $(all_libraries) $(KDE_RPATH)

noinst_HEADERS = secpolicywin.h pamview.h ppitem.h

kdeadmin3 _unstable_ port .patch