[54323] trunk/dports/security
ram at macports.org
ram at macports.org
Fri Jul 24 15:46:30 PDT 2009
Revision: 54323
http://trac.macports.org/changeset/54323
Author: ram at macports.org
Date: 2009-07-24 15:46:30 -0700 (Fri, 24 Jul 2009)
Log Message:
-----------
security/steghide: new port, closes #20356
Added Paths:
-----------
trunk/dports/security/steghide/
trunk/dports/security/steghide/Portfile
trunk/dports/security/steghide/files/
trunk/dports/security/steghide/files/patch-build-with-gcc-4.diff
trunk/dports/security/steghide/files/patch-src-Makefile.am.diff
trunk/dports/security/steghide/files/patch-src-Makefile.in.diff
Added: trunk/dports/security/steghide/Portfile
===================================================================
--- trunk/dports/security/steghide/Portfile (rev 0)
+++ trunk/dports/security/steghide/Portfile 2009-07-24 22:46:30 UTC (rev 54323)
@@ -0,0 +1,35 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name steghide
+version 0.5.1
+categories security
+maintainers gmail.com:cforkin
+description Steghide is a steganography program
+long_description Steghide is a steganography program that is able to hide \
+ data in various kinds of image- and audio-files. The \
+ color- respectivly sample-frequencies are not changed thus \
+ making the embedding resistant against first-order \
+ statistical tests.
+homepage http://steghide.sourceforge.net/
+platforms darwin
+master_sites http://prdownloads.sourceforge.net/steghide/
+
+configure.args --mandir=${prefix}/share/man
+
+patchfiles patch-build-with-gcc-4.diff \
+ patch-src-Makefile.am.diff \
+ patch-src-Makefile.in.diff
+
+checksums md5 5be490e24807d921045780fd8cc446b3 \
+ sha1 a6d204744fabfe5751ab5e2d889ac373c0b0a30c \
+ rmd160 e17507444b8bb91e6e29d46ec02fa39f7f2f44e8
+
+depends_lib port:jpeg \
+ port:mhash \
+ port:gettext \
+ port:libmcrypt \
+ port:libiconv \
+ port:zlib
Property changes on: trunk/dports/security/steghide/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/security/steghide/files/patch-build-with-gcc-4.diff
===================================================================
--- trunk/dports/security/steghide/files/patch-build-with-gcc-4.diff (rev 0)
+++ trunk/dports/security/steghide/files/patch-build-with-gcc-4.diff 2009-07-24 22:46:30 UTC (rev 54323)
@@ -0,0 +1,159 @@
+only in patch2:
+unchanged:
+--- src/ProgressOutput.h
++++ src/ProgressOutput.h
+@@ -62,9 +62,9 @@
+ * \param rate the rate of matched vertices
+ * \param avgweight the average edge weight (is not printed if not given)
+ **/
+- void done (float rate, float avgweight = NoAvgWeight) const ;
++ void done (float rate, float avgweight = 1.0) const ;
+
+- static const float NoAvgWeight = -1.0 ;
++ static float NoAvgWeight ;
+
+ protected:
+ std::string vcompose (const char *msgfmt, va_list ap) const ;
+only in patch2:
+unchanged:
+--- src/wrapper_hash_map.h
++++ src/wrapper_hash_map.h
+@@ -29,7 +29,7 @@
+ namespace sgi { using ::hash ; using ::hash_map ; } ;
+ # else
+ # include <ext/hash_map>
+-# if __GNUC_MINOR__ == 0
++# if __GNUC__ == 3 && __GNUC_MINOR__ == 0
+ namespace sgi = std ; // GCC 3.0
+ # else
+ namespace sgi = __gnu_cxx ; // GCC 3.1 and later
+only in patch2:
+unchanged:
+--- src/wrapper_hash_set.h
++++ src/wrapper_hash_set.h
+@@ -30,7 +30,7 @@
+ namespace sgi { using ::hash ; using ::hash_set ; } ;
+ # else
+ # include <ext/hash_set>
+-# if __GNUC_MINOR__ == 0
++# if __GNUC__ == 3 && __GNUC_MINOR__ == 0
+ namespace sgi = std ; // GCC 3.0
+ # else
+ namespace sgi = ::__gnu_cxx ; // GCC 3.1 and later
+only in patch2:
+unchanged:
+--- src/AuData.h
++++ src/AuData.h
+@@ -26,22 +26,22 @@
+
+ // AuMuLawAudioData
+ typedef AudioDataImpl<AuMuLaw,BYTE> AuMuLawAudioData ;
+-inline BYTE AuMuLawAudioData::readValue (BinaryIO* io) const { return (io->read8()) ; }
+-inline void AuMuLawAudioData::writeValue (BinaryIO* io, BYTE v) const { io->write8(v) ; }
++template <> inline BYTE AuMuLawAudioData::readValue (BinaryIO* io) const { return (io->read8()) ; }
++template <> inline void AuMuLawAudioData::writeValue (BinaryIO* io, BYTE v) const { io->write8(v) ; }
+
+ // AuPCM8AudioData
+ typedef AudioDataImpl<AuPCM8,SBYTE> AuPCM8AudioData ;
+-inline SBYTE AuPCM8AudioData::readValue (BinaryIO* io) const { return ((SBYTE) io->read8()) ; }
+-inline void AuPCM8AudioData::writeValue (BinaryIO* io, SBYTE v) const { io->write8((BYTE) v) ; }
++template <> inline SBYTE AuPCM8AudioData::readValue (BinaryIO* io) const { return ((SBYTE) io->read8()) ; }
++template <> inline void AuPCM8AudioData::writeValue (BinaryIO* io, SBYTE v) const { io->write8((BYTE) v) ; }
+
+ // AuPCM16AudioData
+ typedef AudioDataImpl<AuPCM16,SWORD16> AuPCM16AudioData ;
+-inline SWORD16 AuPCM16AudioData::readValue (BinaryIO* io) const { return ((SWORD16) io->read16_be()) ; }
+-inline void AuPCM16AudioData::writeValue (BinaryIO* io, SWORD16 v) const { io->write16_be((UWORD16) v) ; }
++template <> inline SWORD16 AuPCM16AudioData::readValue (BinaryIO* io) const { return ((SWORD16) io->read16_be()) ; }
++template <> inline void AuPCM16AudioData::writeValue (BinaryIO* io, SWORD16 v) const { io->write16_be((UWORD16) v) ; }
+
+ // AuPCM32AudioData
+ typedef AudioDataImpl<AuPCM32,SWORD32> AuPCM32AudioData ;
+-inline SWORD32 AuPCM32AudioData::readValue (BinaryIO* io) const { return ((SWORD32) io->read32_be()) ; }
+-inline void AuPCM32AudioData::writeValue (BinaryIO* io, SWORD32 v) const { io->write32_be((UWORD32) v) ; }
++template <> inline SWORD32 AuPCM32AudioData::readValue (BinaryIO* io) const { return ((SWORD32) io->read32_be()) ; }
++template <> inline void AuPCM32AudioData::writeValue (BinaryIO* io, SWORD32 v) const { io->write32_be((UWORD32) v) ; }
+
+ #endif // ndef SH_AUDATA_H
+only in patch2:
+unchanged:
+--- src/Arguments.h
++++ src/Arguments.h
+@@ -100,7 +100,7 @@
+ static const VERBOSITY Default_Verbosity = NORMAL ;
+ static const unsigned long Default_Radius = 0 ; // there is no default radius for all file formats
+ static const unsigned int Max_Algorithm = 3 ;
+- static const float Default_Goal = 100.0 ;
++ static float Default_Goal ;
+ static const DEBUGCOMMAND Default_DebugCommand = NONE ;
+ static const bool Default_Check = false ;
+ static const unsigned int Default_DebugLevel = 0 ;
+only in patch2:
+unchanged:
+--- src/Arguments.cc
++++ src/Arguments.cc
+@@ -28,6 +28,8 @@
+ #include "error.h"
+ #include "msg.h"
+
++float Arguments::Default_Goal = 100.0 ;
++
+ // the global Arguments object
+ Arguments Args ;
+
+only in patch2:
+unchanged:
+--- src/ProgressOutput.cc
++++ src/ProgressOutput.cc
+@@ -23,6 +23,8 @@
+ #include "ProgressOutput.h"
+ #include "common.h"
+
++float ProgressOutput::NoAvgWeight = -1.0 ;
++
+ ProgressOutput::ProgressOutput ()
+ : Message("__nomessage__")
+ {
+
+--- src/AuSampleValues.cc
++++ src/AuSampleValues.cc
+@@ -21,17 +21,17 @@
+ #include "AuSampleValues.h"
+
+ // AuMuLawSampleValue
+-const BYTE AuMuLawSampleValue::MinValue = 0 ;
+-const BYTE AuMuLawSampleValue::MaxValue = BYTE_MAX ;
++template <> const BYTE AuMuLawSampleValue::MinValue = 0 ;
++template <> const BYTE AuMuLawSampleValue::MaxValue = BYTE_MAX ;
+
+ // AuPCM8SampleValue
+-const SBYTE AuPCM8SampleValue::MinValue = SBYTE_MIN ;
+-const SBYTE AuPCM8SampleValue::MaxValue = SBYTE_MAX ;
++template <> const SBYTE AuPCM8SampleValue::MinValue = SBYTE_MIN ;
++template <> const SBYTE AuPCM8SampleValue::MaxValue = SBYTE_MAX ;
+
+ // AuPCM16SampleValue
+-const SWORD16 AuPCM16SampleValue::MinValue = SWORD16_MIN ;
+-const SWORD16 AuPCM16SampleValue::MaxValue = SWORD16_MAX ;
++template <> const SWORD16 AuPCM16SampleValue::MinValue = SWORD16_MIN ;
++template <> const SWORD16 AuPCM16SampleValue::MaxValue = SWORD16_MAX ;
+
+ // AuPCM32SampleValue
+-const SWORD32 AuPCM32SampleValue::MinValue = SWORD32_MIN ;
+-const SWORD32 AuPCM32SampleValue::MaxValue = SWORD32_MAX ;
++template <> const SWORD32 AuPCM32SampleValue::MinValue = SWORD32_MIN ;
++template <> const SWORD32 AuPCM32SampleValue::MaxValue = SWORD32_MAX ;
+
+
+--- src/MHashPP.cc
++++ src/MHashPP.cc
+@@ -120,7 +120,7 @@
+
+ std::string MHashPP::getAlgorithmName (hashid id)
+ {
+- char *name = mhash_get_hash_name (id) ;
++ char *name = (char*)(mhash_get_hash_name (id)) ;
+ std::string retval ;
+ if (name == NULL) {
+ retval = std::string ("<algorithm not found>") ;
+
Added: trunk/dports/security/steghide/files/patch-src-Makefile.am.diff
===================================================================
--- trunk/dports/security/steghide/files/patch-src-Makefile.am.diff (rev 0)
+++ trunk/dports/security/steghide/files/patch-src-Makefile.am.diff 2009-07-24 22:46:30 UTC (rev 54323)
@@ -0,0 +1,11 @@
+
+--- src/Makefile.am
++++ src/Makefile.am
+@@ -33,5 +33,5 @@
+ WavPCMSampleValue.cc error.cc main.cc msg.cc SMDConstructionHeuristic.cc
+ LIBS = @LIBINTL@ @LIBS@
+ localedir = $(datadir)/locale
+-LIBTOOL = $(SHELL) libtool
++LIBTOOL = $(SHELL) glibtool
+ MAINTAINERCLEANFILES = Makefile.in
+
Added: trunk/dports/security/steghide/files/patch-src-Makefile.in.diff
===================================================================
--- trunk/dports/security/steghide/files/patch-src-Makefile.in.diff (rev 0)
+++ trunk/dports/security/steghide/files/patch-src-Makefile.in.diff 2009-07-24 22:46:30 UTC (rev 54323)
@@ -0,0 +1,12 @@
+
+--- src/Makefile.in
++++ src/Makefile.in
+@@ -190,7 +190,7 @@
+ WavPCMSampleValue.cc error.cc main.cc msg.cc SMDConstructionHeuristic.cc
+
+ localedir = $(datadir)/locale
+-LIBTOOL = $(SHELL) libtool
++LIBTOOL = $(SHELL) glibtool
+ MAINTAINERCLEANFILES = Makefile.in
+ subdir = src
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090724/2a0b640a/attachment-0001.html>
More information about the macports-changes
mailing list