[141071] trunk/dports/net

ryandesign at macports.org ryandesign at macports.org
Fri Oct 9 08:49:53 PDT 2015


Revision: 141071
          https://trac.macports.org/changeset/141071
Author:   ryandesign at macports.org
Date:     2015-10-09 08:49:52 -0700 (Fri, 09 Oct 2015)
Log Message:
-----------
oinkmaster: new port, version 2.0 (#48977)

Added Paths:
-----------
    trunk/dports/net/oinkmaster/
    trunk/dports/net/oinkmaster/Portfile
    trunk/dports/net/oinkmaster/files/
    trunk/dports/net/oinkmaster/files/patch-oinkmaster.1.diff
    trunk/dports/net/oinkmaster/files/patch-oinkmaster.conf.diff
    trunk/dports/net/oinkmaster/files/patch-oinkmaster.pl.diff

Added: trunk/dports/net/oinkmaster/Portfile
===================================================================
--- trunk/dports/net/oinkmaster/Portfile	                        (rev 0)
+++ trunk/dports/net/oinkmaster/Portfile	2015-10-09 15:49:52 UTC (rev 141071)
@@ -0,0 +1,62 @@
+# -*- 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                oinkmaster
+version             2.0
+categories          net
+platforms           darwin
+maintainers         gmail.com:mschamschula openmaintainer
+license             BSD
+supported_archs     noarch
+
+description         Oinkmaster is a script that will help you update and manage your \
+                    Snort rules.
+
+long_description    ${description}
+
+homepage            http://oinkmaster.sourceforge.net/
+master_sites        sourceforge:project/oinkmaster/oinkmaster/${version}/
+
+checksums           rmd160  a3292cfc2e6b175008a7172be5809ca6e2fc85b7 \
+                    sha256  3d52f0426aa7c81b122cef22b80d708d8bb8337537e48754a065804f46c46162
+
+depends_run         port:wget
+
+patchfiles          patch-oinkmaster.1.diff \
+                    patch-oinkmaster.conf.diff \
+                    patch-oinkmaster.pl.diff
+
+post-patch {
+    reinplace -W ${worksrcpath} "s|@PREFIX@|${prefix}|g" \
+                    oinkmaster.1 \
+                    oinkmaster.conf \
+                    oinkmaster.pl
+}
+
+use_configure       no
+
+build               {}
+
+destroot {
+    xinstall -m 755 ${worksrcpath}/oinkmaster.pl ${destroot}${prefix}/bin
+    xinstall -m 755 ${worksrcpath}/oinkmaster.conf ${destroot}${prefix}/etc/oinkmaster.conf.sample
+    xinstall -m 755 ${worksrcpath}/oinkmaster.1 ${destroot}${prefix}/share/man/man1
+
+    set docdir ${prefix}/share/doc/${subport}
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 644 -W ${worksrcpath} \
+        ChangeLog \
+        FAQ \
+        LICENSE \
+        README \
+        README.templates \
+        ${destroot}${docdir}
+}
+
+post-activate {
+    if {![file exists ${prefix}/etc/oinkmaster.conf]} {
+        copy ${prefix}/etc/oinkmaster.conf.sample ${prefix}/etc/oinkmaster.conf
+    }
+}


Property changes on: trunk/dports/net/oinkmaster/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/net/oinkmaster/files/patch-oinkmaster.1.diff
===================================================================
--- trunk/dports/net/oinkmaster/files/patch-oinkmaster.1.diff	                        (rev 0)
+++ trunk/dports/net/oinkmaster/files/patch-oinkmaster.1.diff	2015-10-09 15:49:52 UTC (rev 141071)
@@ -0,0 +1,20 @@
+--- oinkmaster.1.orig	2015-10-09 10:25:03.000000000 -0500
++++ oinkmaster.1	2015-10-09 10:26:09.000000000 -0500
+@@ -40,7 +40,7 @@
+ .IP "\fB-C \fIcfg\fP
+ Use this configuration file instead of the default.
+ If not specified, oinkmaster.conf will be looked for in
+-/etc/ and then /usr/local/etc/.
++/etc/ and then @PREFIX@/etc/.
+ You can specify multiple
+ .B -C
+ .I cfg
+@@ -256,7 +256,7 @@
+ .SH FILES
+ .B /etc/oinkmaster.conf
+ .br
+-.B /usr/local/etc/oinkmaster.conf
++.B @PREFIX@/etc/oinkmaster.conf
+ .SH BUGS
+ If you find a bug, report it by e-mail to the author. Always include as 
+ much information as possible.

Added: trunk/dports/net/oinkmaster/files/patch-oinkmaster.conf.diff
===================================================================
--- trunk/dports/net/oinkmaster/files/patch-oinkmaster.conf.diff	                        (rev 0)
+++ trunk/dports/net/oinkmaster/files/patch-oinkmaster.conf.diff	2015-10-09 15:49:52 UTC (rev 141071)
@@ -0,0 +1,11 @@
+--- oinkmaster.conf.orig	2006-02-18 06:35:21.000000000 -0600
++++ oinkmaster.conf	2015-10-09 10:44:37.000000000 -0500
+@@ -87,7 +87,7 @@
+ # contains the Cygwin binaries and not the native Win32 binaries or 
+ # you will get problems.
+ # Assume UNIX style by default:
+-path = /bin:/usr/bin:/usr/local/bin
++path = @PREFIX@/bin:/bin:/usr/bin:/usr/local/bin
+ 
+ # Example if running native Win32 or standalone Cygwin:
+ # path = c:\oinkmaster;c:\oinkmaster\bin

Added: trunk/dports/net/oinkmaster/files/patch-oinkmaster.pl.diff
===================================================================
--- trunk/dports/net/oinkmaster/files/patch-oinkmaster.pl.diff	                        (rev 0)
+++ trunk/dports/net/oinkmaster/files/patch-oinkmaster.pl.diff	2015-10-09 15:49:52 UTC (rev 141071)
@@ -0,0 +1,29 @@
+--- oinkmaster.pl.orig	2006-02-18 06:35:21.000000000 -0600
++++ oinkmaster.pl	2015-10-09 10:15:09.000000000 -0500
+@@ -2,7 +2,7 @@
+ 
+ # $Id: oinkmaster.pl,v 1.406 2006/02/10 13:02:44 andreas_o Exp $ #
+ 
+-# Copyright (c) 2001-2006 Andreas \xD6stling <andreaso at it.su.se>
++# Copyright (c) 2001-2006 Andreas Östling <andreaso at it.su.se>
+ # All rights reserved.
+ #
+ #  Redistribution and use in source and binary forms, with or
+@@ -83,7 +83,7 @@
+ 
+ 
+ my $VERSION            = 'Oinkmaster v2.0, Copyright (C) 2001-2006 '.
+-                         'Andreas \xD6stling <andreaso at it.su.se>';
++                         'Andreas Östling <andreaso at it.su.se>';
+ my $OUTFILE            = 'snortrules.tar.gz';
+ my $RULES_DIR          = 'rules';
+ 
+@@ -133,7 +133,7 @@
+ # Default locations for configuration file.
+ my @DEFAULT_CONFIG_FILES = qw(
+     /etc/oinkmaster.conf
+-    /usr/local/etc/oinkmaster.conf
++    @PREFIX@/etc/oinkmaster.conf
+ );
+ 
+ my @DEFAULT_DIST_VAR_FILES = qw(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151009/9fdf9b0d/attachment.html>


More information about the macports-changes mailing list