Import of hlfl-0.52:

--
hlfl (High Level Firewall Language) permits writing firewall rulesets
using its high level language, and transforms them into rules for
real software, including IPFilter, ipchains, Netfilter and Cisco IOS.

hlfl attempts to make the best use of the features of the underlying
firewall, such that a conversion from stateless to stateful requires
no modification to the original script.

hlfl was initiated by Renaud Deraison, co-founder of the Nessus
Project.

WWW: http://www.hlfl.org/

MAINTAINER=	Jason Peel <jsyn@openbsd.org>
This commit is contained in:
jsyn 2001-07-05 20:10:38 +00:00
parent c0f43516b4
commit 6c01cc650d
8 changed files with 170 additions and 0 deletions

32
security/hlfl/Makefile Normal file
View File

@ -0,0 +1,32 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/07/05 20:10:38 jsyn Exp $
COMMENT= "high level firewall language"
DISTNAME= hlfl-0.52
CATEGORIES= security lang
NEED_VERSION= 1.417
HOMEPAGE= http://www.hlfl.org/
MAINTAINER= Jason Peel <jsyn@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.hlfl.org/hlfl/ \
ftp://ftp.hlfl.org/pub/hlfl/
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CXX=${CXX} CFLAGS="${CFLAGS}"
FAKE_FLAGS= prefix=${WRKINST}${PREFIX} datadir=${WRKINST}${PREFIX}/share/examples
post-extract:
@perl -pi -e 's#\$${prefix}\/share\/hlfl\/services\.hlfl#${SYSCONFDIR}/services.hlfl#' ${WRKSRC}/doc/hlfl.1
@perl -pi -e 's#\$${prefix}\/share#${PREFIX}/share/examples#' ${WRKSRC}/doc/hlfl.1
post-install:
@strip ${PREFIX}/bin/hlfl
.include <bsd.port.mk>

3
security/hlfl/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (hlfl-0.52.tar.gz) = a25f882a1f2c466fde0d1ae877fda206
RMD160 (hlfl-0.52.tar.gz) = b8eafbfaec63369dbb93d30c38b4c8fb809b8557
SHA1 (hlfl-0.52.tar.gz) = fcb14c41322eaa0871d5be1715e7d17ea154051c

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-doc_hlfl_1,v 1.1.1.1 2001/07/05 20:10:39 jsyn Exp $
--- doc/hlfl.1.orig Fri Jun 29 11:17:20 2001
+++ doc/hlfl.1 Fri Jun 29 14:12:34 2001
@@ -172,7 +172,7 @@ keyword allows you to include other file
The second
.I include
statement will include the file
-.I hflf.fl
+.I file.hlfl
which is in the current working directory.
It is also possible to include 'systems' file, using brackets :

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-hlfl_tmpl_in,v 1.1.1.1 2001/07/05 20:10:39 jsyn Exp $
--- hlfl.tmpl.in.orig Fri Jun 29 14:05:50 2001
+++ hlfl.tmpl.in Fri Jun 29 14:07:11 2001
@@ -15,7 +15,7 @@ oldincludedir=@oldincludedir@
infodir=@infodir@
mandir=@mandir@
CC=@CC@
-CFLAGS=@CFLAGS@ -DFILES=\"${datadir}/hlfl\"
+CFLAGS=@CFLAGS@ -DFILES=\"${sysconfdir}\"
DEFS=$(CFLAGS)
LIBS=@LIBS@
INSTALL=@INSTALL@

View File

@ -0,0 +1,25 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/07/05 20:10:38 jsyn Exp $
#
# hlfl de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_FILE=${SYSCONFDIR}/services.hlfl
if [ -f "${CONFIG_FILE}" ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| this step as root:"
echo "|"
echo "| rm -f ${CONFIG_FILE}"
echo "|"
echo "| This is not necessary if you plan on re-installing $1"
echo "| in the near future."
echo "+---------------"
echo
fi
exit 0

12
security/hlfl/pkg/DESCR Normal file
View File

@ -0,0 +1,12 @@
hlfl (High Level Firewall Language) permits writing firewall rulesets
using its high level language, and transforms them into rules for
real software, including IPFilter, ipchains, Netfilter and Cisco IOS.
hlfl attempts to make the best use of the features of the underlying
firewall, such that a conversion from stateless to stateful requires
no modification to the original script.
hlfl was initiated by Renaud Deraison, co-founder of the Nessus
Project.
WWW: ${HOMEPAGE}

65
security/hlfl/pkg/INSTALL Normal file
View File

@ -0,0 +1,65 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.1.1.1 2001/07/05 20:10:38 jsyn Exp $
#
# Pre/post-installation setup of hlfl
# exit on errors, use a sane path and install prefix
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONF_FILE=services.hlfl
EXAMPLE_DIR=${PREFIX}/share/examples/hlfl/
do_notice()
{
echo
echo "+---------------"
echo "| The existing $1 configuration file ${SYSCONFDIR}${CONF_FILE}"
echo "| has NOT been changed. You may want to compare it to the"
echo "| current sample file ${EXAMPLE_DIR},"
echo "| and update your configuration as needed."
echo "+---------------"
echo
}
do_install()
{
install -o root -g wheel -m 644 ${EXAMPLE_DIR}${CONF_FILE} \
${SYSCONFDIR}
echo
echo "+---------------"
echo "| The $1 configuration file has been installed into"
echo "| ${SYSCONFDIR}/${CONF_FILE}. Please view this file and change"
echo "| the configuration to meet your needs."
echo "+---------------"
echo
}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
: nothing to pre-install for this port
;;
POST-INSTALL)
if [ -f "${SYSCONFDIR}/${CONF_FILE}" ]; then
do_notice $1
else
do_install $1
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

9
security/hlfl/pkg/PLIST Normal file
View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/07/05 20:10:38 jsyn Exp $
bin/hlfl
man/man1/hlfl.1
share/examples/hlfl/sample_1.hlfl
share/examples/hlfl/sample_2.hlfl
share/examples/hlfl/services.hlfl
share/examples/hlfl/syntax.txt
share/examples/hlfl/test.hlfl
@dirrm share/examples/hlfl