summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2007-10-19 03:56:13 +0000
committertaca <taca@pkgsrc.org>2007-10-19 03:56:13 +0000
commita380c3fe58642246dd33ec899cc3cf184ac4c1ae (patch)
treece40268f19232c4d2bc1b35c1f41ebeffbd67c2a
parentc4c173a3016fbd046e64e6bd1af4bf2a409eae97 (diff)
downloadpkgsrc-a380c3fe58642246dd33ec899cc3cf184ac4c1ae.tar.gz
Add const to fix compile problem on some platforms.
-rw-r--r--sysutils/smartmontools/distinfo4
-rw-r--r--sysutils/smartmontools/patches/patch-ae13
-rw-r--r--sysutils/smartmontools/patches/patch-af13
3 files changed, 29 insertions, 1 deletions
diff --git a/sysutils/smartmontools/distinfo b/sysutils/smartmontools/distinfo
index 7da23a40202..be98bd271ec 100644
--- a/sysutils/smartmontools/distinfo
+++ b/sysutils/smartmontools/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.13 2007/06/03 10:40:07 jmmv Exp $
+$NetBSD: distinfo,v 1.14 2007/10/19 03:56:13 taca Exp $
SHA1 (smartmontools-5.37.tar.gz) = d6e88f576e26836b929c570290644b0580645602
RMD160 (smartmontools-5.37.tar.gz) = e9d18c71340766dc43bf462a4c12cb0d152f2812
Size (smartmontools-5.37.tar.gz) = 590605 bytes
SHA1 (patch-aa) = 005d69bebfdb385ca42c59aa2c90a62e22c14733
+SHA1 (patch-ae) = 35a42cfc16f6657ddbc81cbecf340a3892ba4918
+SHA1 (patch-af) = 0936c5eb5f0df75cebd186304a6ca111909a34d2
diff --git a/sysutils/smartmontools/patches/patch-ae b/sysutils/smartmontools/patches/patch-ae
new file mode 100644
index 00000000000..31b0876108c
--- /dev/null
+++ b/sysutils/smartmontools/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1 2007/10/19 03:56:13 taca Exp $
+
+--- smartctl.cpp.orig Mon Oct 9 20:45:12 2006
++++ smartctl.cpp
+@@ -82,7 +82,7 @@ void PrintOneCVS(const char *a_cvs_id){
+ }
+
+ void printcopy(){
+- char *configargs=strlen(SMARTMONTOOLS_CONFIGURE_ARGS)?SMARTMONTOOLS_CONFIGURE_ARGS:"[no arguments given]";
++ const char *configargs=strlen(SMARTMONTOOLS_CONFIGURE_ARGS)?SMARTMONTOOLS_CONFIGURE_ARGS:"[no arguments given]";
+
+ pout("smartctl comes with ABSOLUTELY NO WARRANTY. This\n");
+ pout("is free software, and you are welcome to redistribute it\n");
diff --git a/sysutils/smartmontools/patches/patch-af b/sysutils/smartmontools/patches/patch-af
new file mode 100644
index 00000000000..c88f0c5e8f0
--- /dev/null
+++ b/sysutils/smartmontools/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2007/10/19 03:56:14 taca Exp $
+
+--- smartd.cpp.orig Sun Nov 12 13:49:09 2006
++++ smartd.cpp
+@@ -310,7 +310,7 @@ void PrintOneCVS(const char *a_cvs_id){
+
+ // prints CVS identity information for the executable
+ void PrintCVS(void){
+- char *configargs=strlen(SMARTMONTOOLS_CONFIGURE_ARGS)?SMARTMONTOOLS_CONFIGURE_ARGS:"[no arguments given]";
++ const char *configargs=strlen(SMARTMONTOOLS_CONFIGURE_ARGS)?SMARTMONTOOLS_CONFIGURE_ARGS:"[no arguments given]";
+
+ PrintOut(LOG_INFO,(char *)copyleftstring);
+ PrintOut(LOG_INFO,"CVS version IDs of files used to build this code are:\n");