pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/kdebase3 Add PKG_SYSCONFDIR support for kdm. Bump ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/52ae68519fb8
branches: trunk
changeset: 475975:52ae68519fb8
user: markd <markd%pkgsrc.org@localhost>
date: Mon May 31 12:21:06 2004 +0000
description:
Add PKG_SYSCONFDIR support for kdm. Bump PKGREVISION.
Closes PR pkg/24844
diffstat:
x11/kdebase3/Makefile | 18 ++++++------------
x11/kdebase3/distinfo | 3 ++-
x11/kdebase3/files/kdm.sh | 5 +++--
x11/kdebase3/patches/patch-ak | 17 +++++++++++++++++
4 files changed, 28 insertions(+), 15 deletions(-)
diffs (100 lines):
diff -r f1514f065ae6 -r 52ae68519fb8 x11/kdebase3/Makefile
--- a/x11/kdebase3/Makefile Mon May 31 11:48:28 2004 +0000
+++ b/x11/kdebase3/Makefile Mon May 31 12:21:06 2004 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.52 2004/05/26 13:20:53 markd Exp $
+# $NetBSD: Makefile,v 1.53 2004/05/31 12:21:06 markd Exp $
DISTNAME= kdebase-${_KDE_VERSION}
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= x11
COMMENT= Base modules for the KDE 3 integrated X11 desktop
@@ -34,6 +34,9 @@
kwin/pluginlibFix.pl \
konsole/schemaStrip.pl
+CONF_FILES= ${PREFIX}/share/kde/config/kdm/kdmrc \
+ ${PKG_SYSCONFDIR}/kdm/kdmrc
+OWN_DIRS= ${PKG_SYSCONFDIR}/kdm
RCD_SCRIPTS= kdm
.include "../../mk/bsd.prefs.mk"
@@ -105,16 +108,7 @@
pre-configure:
cd ${WRKSRC}; \
- files="kioslave/info/kde-info2html.conf"; \
- for file in $${files}; do \
- ${SED} -e 's|@LOCALBASE@|${LOCALBASE}|' $${file} > \
- $${file}.new; \
- ${MV} -f $${file}.new $${file}; \
- done
-
-post-build:
- cd ${WRKSRC}; \
- files="kioslave/info/kde-info2html.conf"; \
+ files="kcontrol/kdm/main.cpp kioslave/info/kde-info2html.conf"; \
for file in $${files}; do \
${SED} ${FILES_SUBST_SED} $${file} > $${file}.new; \
${MV} -f $${file}.new $${file}; \
diff -r f1514f065ae6 -r 52ae68519fb8 x11/kdebase3/distinfo
--- a/x11/kdebase3/distinfo Mon May 31 11:48:28 2004 +0000
+++ b/x11/kdebase3/distinfo Mon May 31 12:21:06 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.51 2004/05/26 13:20:53 markd Exp $
+$NetBSD: distinfo,v 1.52 2004/05/31 12:21:06 markd Exp $
SHA1 (kdebase-3.2.2.tar.bz2) = bc941b3faa4440ca2048d9332371c974d0e17f5b
Size (kdebase-3.2.2.tar.bz2) = 17216476 bytes
@@ -16,6 +16,7 @@
SHA1 (patch-ah) = dad5cd23522073d088329b4da2c2978d807005bc
SHA1 (patch-ai) = 5638690e617dd27b88aa00928828d3ef585bd6ff
SHA1 (patch-aj) = 3ed17b109394ce3d24accbbd6afcad40013d6b48
+SHA1 (patch-ak) = 234c9a4d01b15ab803a182c51c14a7c0cf249576
SHA1 (patch-bb) = 1b6c717a1bedafbeae0037ee382795d8aa59f081
SHA1 (patch-bc) = 2d54d0700b30f5471eb60d104148ecf5ac835f58
SHA1 (patch-bx) = d58d16fd484fc0a46c1ae93267af19e73af6f990
diff -r f1514f065ae6 -r 52ae68519fb8 x11/kdebase3/files/kdm.sh
--- a/x11/kdebase3/files/kdm.sh Mon May 31 11:48:28 2004 +0000
+++ b/x11/kdebase3/files/kdm.sh Mon May 31 12:21:06 2004 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: kdm.sh,v 1.2 2004/05/01 11:14:41 xtraeme Exp $
+# $NetBSD: kdm.sh,v 1.3 2004/05/31 12:21:06 markd Exp $
#
# PROVIDE: kdm
@@ -15,7 +15,8 @@
rcvar=$name
command="@PREFIX@/bin/${name}"
pidfile="/var/run/kdm.pid"
-required_files="@PREFIX@/share/kde/config/kdm/kdmrc"
+required_files="@PKG_SYSCONFDIR@/kdm/kdmrc"
+command_args="-config ${required_files}"
if [ -f /etc/rc.subr ]; then
load_rc_config $name
diff -r f1514f065ae6 -r 52ae68519fb8 x11/kdebase3/patches/patch-ak
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/kdebase3/patches/patch-ak Mon May 31 12:21:06 2004 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ak,v 1.5 2004/05/31 12:21:06 markd Exp $
+
+--- kcontrol/kdm/main.cpp.orig 2003-11-30 22:42:26.000000000 +1300
++++ kcontrol/kdm/main.cpp
+@@ -89,7 +89,11 @@ KDModule::KDModule(QWidget *parent, cons
+ usermap.insert( QString::fromLocal8Bit( ps->pw_name ), ps->pw_uid );
+ endpwent();
+
+- config = new KSimpleConfig( QString::fromLatin1( KDE_CONFDIR "/kdm/kdmrc" ));
++ QFile confFile (QString::fromLatin1( "@PKG_SYSCONFDIR@" "/kdm/kdmrc" ));
++ if ( !confFile.exists() )
++ confFile.setName (QString::fromLatin1( KDE_CONFDIR "/kdm/kdmrc" ));
++
++ config = new KSimpleConfig( confFile.name());
+
+ QVBoxLayout *top = new QVBoxLayout(this);
+ tab = new QTabWidget(this);
Home |
Main Index |
Thread Index |
Old Index