summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2006-04-24 22:16:14 +0000
committermarkd <markd@pkgsrc.org>2006-04-24 22:16:14 +0000
commitf72c86ef655e5d70371172c3c35e1931b6e0a8d5 (patch)
treea9355fcba2f33637efa821374bdc1b564bdd0028 /x11
parentcc17cf1e8ebee1485901fcf55314c52b05a1ca34 (diff)
downloadpkgsrc-f72c86ef655e5d70371172c3c35e1931b6e0a8d5.tar.gz
Fix build on Solaris (doesn't have SIOCGIFHWADDR)
Diffstat (limited to 'x11')
-rw-r--r--x11/kdebase3/distinfo3
-rw-r--r--x11/kdebase3/patches/patch-ao30
2 files changed, 32 insertions, 1 deletions
diff --git a/x11/kdebase3/distinfo b/x11/kdebase3/distinfo
index dc0a8b2fd33..2cd1fdb5df1 100644
--- a/x11/kdebase3/distinfo
+++ b/x11/kdebase3/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.82 2006/03/30 02:39:39 markd Exp $
+$NetBSD: distinfo,v 1.83 2006/04/24 22:16:14 markd Exp $
SHA1 (kdebase-3.5.2.tar.bz2) = 16cddd8766c3bd8821044fe9cce66f5291c8412b
RMD160 (kdebase-3.5.2.tar.bz2) = 216ff59c49bb4fee2aa3b7d976ec40a8cccff107
@@ -23,6 +23,7 @@ SHA1 (patch-ak) = df7ff2bf5ed6bb2442d49df1c277712712a7f966
SHA1 (patch-al) = 555384dc03ab59845e5794e081dd5d1a92e2959e
SHA1 (patch-am) = 07ed2a5717a8f72bc36906ef4fafc360ac63479c
SHA1 (patch-an) = e1620c558d300db98580109e64ee44a63571e5f7
+SHA1 (patch-ao) = 78caab47eececf32ba928d646ca5c8fcc0bb13fc
SHA1 (patch-bb) = 4c85002b95661db18619283e50512f3ab131a0ba
SHA1 (patch-bc) = fd7e784b584763b7351dbdaefda58443bd1aaadb
SHA1 (patch-bx) = d58d16fd484fc0a46c1ae93267af19e73af6f990
diff --git a/x11/kdebase3/patches/patch-ao b/x11/kdebase3/patches/patch-ao
new file mode 100644
index 00000000000..86980d2f2c0
--- /dev/null
+++ b/x11/kdebase3/patches/patch-ao
@@ -0,0 +1,30 @@
+$NetBSD: patch-ao,v 1.9 2006/04/24 22:16:14 markd Exp $
+
+--- kcontrol/nics/nic.cpp.orig 2006-04-17 14:30:47.642462000 +1200
++++ kcontrol/nics/nic.cpp
+@@ -215,6 +215,7 @@ NICList* findNICs()
+ tmp->netmask=i18n("Unknown");
+
+ ifcopy=*ifr;
++#ifdef SIOCGIFHWADDR
+ result=ioctl(sockfd,SIOCGIFHWADDR,&ifcopy);
+ if (result==0)
+ {
+@@ -222,6 +223,17 @@ NICList* findNICs()
+ tmp->HWaddr = HWaddr2String(n);
+ }
+ else
++#else
++#ifdef SIOCGENADDR
++ result=ioctl(sockfd,SIOCGENADDR,&ifcopy);
++ if (result==0)
++ {
++ char *n = &ifcopy.ifr_ifru.ifru_enaddr[0];
++ tmp->HWaddr = HWaddr2String(n);
++ }
++ else
++#endif
++#endif
+ tmp->HWaddr = i18n("Unknown");
+
+ nl->append(tmp);