NetBSD Problem Report #18537

Received: (qmail 5026 invoked by uid 605); 5 Oct 2002 09:10:38 -0000
Message-Id: <20021005114839.H16627-100000@lion.com.ua>
Date: Sat, 5 Oct 2002 12:10:12 +0300 (EEST)
From: Andrey Simonenko <simon@simon.org.ua>
Sender: gnats-bugs-owner@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: Maintainer update port net/ipa 1.2.7 -> 1.2.8

>Number:         18537
>Category:       pkg
>Synopsis:       Maintainer update port net/ipa 1.2.7 -> 1.2.8
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 05 09:11:00 +0000 2002
>Closed-Date:    Tue Oct 22 13:23:19 +0000 2002
>Last-Modified:  Tue Oct 22 13:24:00 +0000 2002
>Originator:     Andrey Simonenko
>Release:        NetBSD 1.6
>Organization:
>Environment:

Ports collection for NetBSD 1.6 release
Release: NetBSD 1.6
Architecture: i386
Machine: i386

>Description:

Please update port net/ipa from 1.2.7 to 1.2.8 version.

I made following changes:

- added some HTTP and FTP mirrors;

- removed installation of ${DSTEXAMPLEDIR} directory, because it is
  installed from the port's Makefile;

- removed changes for deinstall: target from patch-aa for the original
  Makefile (Why we should change something there? A port does not use
  this section, isn't it?);

- removed patch-ac, because original source file was fixed;

- updated DESCR to reflect current state of IPA.

In the file
ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/net/ipa/README.html
it is noted that ipa<1.2.7 has remote-access exploit, really I reported
about local-access exploit. Please fix this sentence.

>How-To-Repeat:
>Fix:
diff -ruN ipa.orig/DESCR ipa/DESCR
--- ipa.orig/DESCR	Sun Jun 30 03:57:52 2002
+++ ipa/DESCR	Fri Oct  4 13:47:48 2002
@@ -1,13 +1,12 @@
-IPA allows to make IP accounting (network accounting) based on
-IPv4/v6 Firewall (FreeBSD only) and/or IP Filter accounting rules
-on NetBSD, OpenBSD and FreeBSD.
+IPA(8) allows to make IP accounting (network accounting) based on
+FreeBSD IPv4/v6 Firewall, OpenBSD Packet Filter and IP Filter
+accounting rules on FreeBSD, NetBSD and OpenBSD.

 It supports limits for accounting rules and limits events as "limit is
 reached", "reached limit is expired", etc. It understands time intervals
 like "end of day", "end of week", "end of month", etc.

-There is special viewer for accounting database and access control lists,
-which allow or disallow one to view accounting information for rules.
+IPASTAT(8) is a viewer for IP accounting database made by IPA(8).

 - Andrey Simonenko
 simon@simon.org.ua
diff -ruN ipa.orig/Makefile ipa/Makefile
--- ipa.orig/Makefile	Sun Jun 30 03:47:52 2002
+++ ipa/Makefile	Fri Oct  4 13:37:45 2002
@@ -1,9 +1,12 @@
 # $NetBSD: Makefile,v 1.3 2002/06/30 03:47:53 jlam Exp $

-DISTNAME=	ipa-1.2.7
+DISTNAME=	ipa-1.2.8
 CATEGORIES=	net sysutils
 MASTER_SITES=	http://www.simon.org.ua/ipa/ \
-		http://www.mirrors.wiretapped.net/security/network-monitoring/ipa/
+		http://www.mirrors.wiretapped.net/security/network-monitoring/ipa/ \
+		ftp://ftp.mirrors.wiretapped.net/pub/security/network-monitoring/ipa/ \
+		http://www.outloud.org/ipa/ \
+		http://ipa.it-ss.be/

 MAINTAINER=	simon@simon.org.ua
 HOMEPAGE=	http://www.simon.org.ua/ipa/
diff -ruN ipa.orig/distinfo ipa/distinfo
--- ipa.orig/distinfo	Sun Jun 30 13:13:48 2002
+++ ipa/distinfo	Fri Oct  4 16:42:17 2002
@@ -1,7 +1,6 @@
 $NetBSD: distinfo,v 1.5 2002/06/30 13:13:48 dmcmahill Exp $

-SHA1 (ipa-1.2.7.tar.gz) = 73799bf16be637b4d683ec86b9943177856349dc
-Size (ipa-1.2.7.tar.gz) = 137825 bytes
-SHA1 (patch-aa) = 6b7a63768c673eebb76b2a9c4cfe2eaf40287c8f
+SHA1 (ipa-1.2.8.tar.gz) = aa83f3e2d23c70073748d28b11bf487f806756e5
+Size (ipa-1.2.8.tar.gz) = 132234 bytes
+SHA1 (patch-aa) = 7d867aee3b1eb49869c6af0e86c6dee05898c678
 SHA1 (patch-ab) = edce3d9d03ee7456c440ce4179e1e8c39bb516f2
-SHA1 (patch-ac) = 8b7fd122923082a4916f3b46bbfb8475a19f5dd6
diff -ruN ipa.orig/patches/patch-aa ipa/patches/patch-aa
--- ipa.orig/patches/patch-aa	Sun Jun 30 03:47:54 2002
+++ ipa/patches/patch-aa	Fri Oct  4 16:41:50 2002
@@ -1,7 +1,7 @@
 $NetBSD: patch-aa,v 1.4 2002/06/30 03:47:54 jlam Exp $

---- Makefile.orig	Sat Jun 29 21:14:15 2002
-+++ Makefile
+--- Makefile.orig	Fri Sep 27 23:24:32 2002
++++ Makefile	Fri Oct  4 16:40:51 2002
 @@ -38,7 +38,7 @@
  #	-Ox   - optimize;
  #	-g    - produce debugging information.
@@ -20,7 +20,7 @@

  #
  # DSTRCDIR - where to install sample rc-script
-@@ -97,10 +97,10 @@
+@@ -96,10 +96,10 @@
  #
  # Some INSTALL_* variables
  #
@@ -35,31 +35,22 @@
  INSTALL_MAN_DIR=	${INSTALL} -d -m 0555 -g wheel -o root
  INSTALL_DATA_DIR=	${INSTALL} -d -m 0555 -g wheel -o root

-@@ -219,7 +219,7 @@
- 	${RM} -r ${DSTEXAMPLEDIR}
- 	${RM} ${DSTMANDIR}/man5/ipa.conf.5 ${DSTMANDIR}/man5/ipa.5 ${DSTMANDIR}/man8/ipa.8 ${DSTMANDIR}/man8/ipastat.8
- 	${RM} ${DSTMANDIR}/ru_SU.KOI8-R/man5/ipa.conf.5 ${DSTMANDIR}/ru_SU.KOI8-R/man5/ipa.5 ${DSTMANDIR}/ru_SU.KOI8-R/man8/ipa.8 ${DSTMANDIR}/ru_SU.KOI8-R/man8/ipastat.8
--	${RM} ${DSTETCDIR}/ipa.conf.default ${DSTRCDIR}/ipa.sh.sample
-+	${RM} ${DSTETCDIR}/ipa.conf.default ${DSTRCDIR}/ipa
-
- install:
- .if !exists(./ipa) || !exists(./ipastat)
-@@ -231,21 +231,10 @@
+@@ -230,21 +230,9 @@
  	${INSTALL_PROGRAM} ipa ipastat ${DSTBINDIR}
  	${INSTALL_MAN} man/ipa.5 man/ipa.conf.5 ${DSTMANDIR}/man5
  	${INSTALL_MAN} man/ipa.8 man/ipastat.8 ${DSTMANDIR}/man8
--.if !exists(${DSTMANDIR}/ru_SU.KOI8-R/man5)
--	${INSTALL_MAN_DIR} ${DSTMANDIR}/ru_SU.KOI8-R/man5
+-.if !exists(${DSTMANDIR}/ru_RU.KOI8-R/man5)
+-	${INSTALL_MAN_DIR} ${DSTMANDIR}/ru_RU.KOI8-R/man5
 -.endif
--.if !exists(${DSTMANDIR}/ru_SU.KOI8-R/man8)
--	${INSTALL_MAN_DIR} ${DSTMANDIR}/ru_SU.KOI8-R/man8
+-.if !exists(${DSTMANDIR}/ru_RU.KOI8-R/man8)
+-	${INSTALL_MAN_DIR} ${DSTMANDIR}/ru_RU.KOI8-R/man8
 -.endif
--.if !exists(${DSTMANDIR}/ru_RU.KOI8-R)
--	${LN} -s ${DSTMANDIR}/ru_SU.KOI8-R ${DSTMANDIR}/ru_RU.KOI8-R
+-.if !exists(${DSTMANDIR}/ru_SU.KOI8-R)
+-	${LN} -s ${DSTMANDIR}/ru_RU.KOI8-R ${DSTMANDIR}/ru_SU.KOI8-R
 -.endif
 -	${INSTALL_MAN} man/ru_RU.KOI8-R/ipa.5 man/ru_RU.KOI8-R/ipa.conf.5 ${DSTMANDIR}/ru_SU.KOI8-R/man5
 -	${INSTALL_MAN} man/ru_RU.KOI8-R/ipa.8 man/ru_RU.KOI8-R/ipastat.8 ${DSTMANDIR}/ru_SU.KOI8-R/man8
- 	${INSTALL_DATA_DIR} ${DSTEXAMPLEDIR}
+-	${INSTALL_DATA_DIR} ${DSTEXAMPLEDIR}
  	${INSTALL_DATA} examples/* ${DSTEXAMPLEDIR}
  .if exists(${DSTRCDIR})
 -	${INSTALL_SCRIPT} etc/ipa.sh.sample ${DSTRCDIR}
@@ -67,11 +58,3 @@
  .else
  	@${ECHO}
  	@${ECHO} ">> Can't find directory ${DSTRCDIR}, skip installing of ipa.sh.sample"
-@@ -254,7 +243,6 @@
- .endif
- .if exists(${DSTETCDIR})
- 	${INSTALL_DATA} etc/ipa.conf.default ${DSTETCDIR}
--	${CHMOD} 0400 ${DSTETCDIR}/ipa.conf.default
- .else
- 	@${ECHO}
- 	@${ECHO} ">> Can't find directory ${DSTETCDIR}, skip installing of ipa.conf.default"
diff -ruN ipa.orig/patches/patch-ac ipa/patches/patch-ac
--- ipa.orig/patches/patch-ac	Sun Jun 30 13:13:48 2002
+++ ipa/patches/patch-ac	Thu Jan  1 00:00:00 1970
@@ -1,10 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2002/06/30 13:13:49 dmcmahill Exp $
-
---- db.c.orig	Wed Jun 19 08:10:20 2002
-+++ db.c	Sun Jun 30 09:07:42 2002
-@@ -36,4 +36,5 @@
- #include <stdio.h>
- #include <stdlib.h>
-+#include <string.h>
- #include <syslog.h>
- #include <time.h>

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wiz 
State-Changed-When: Tue Oct 22 06:20:43 PDT 2002 
State-Changed-Why:  
Updated the package as request. Had some trouble since the patches 
to patch-aa didn't apply cleanly (perhaps whitespace issue?). 
Thanks for the PR! 

From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: pr/18537 CVS commit: pkgsrc/net/ipa
Date: Tue, 22 Oct 2002 16:20:09 +0300 (EEST)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Tue Oct 22 13:20:09 UTC 2002

 Modified Files:
 	pkgsrc/net/ipa: DESCR Makefile distinfo
 	pkgsrc/net/ipa/patches: patch-aa

 Log Message:
 Update to 1.2.8, provided by Andrey Simonenko in PR 18537.
 Changes:
 - Locale names have been renamed ru_SU* -> ru_RU*, ru_SU* now are symlinks
 - Fixed some minor bugs
 - Now a new record is added to each accounting file after reconfiguration
 - Now ipa(8) and ipastat(8) do not use database locking feature by default
 - All manual pages were updated to reflect changes in IPA
 - The -u switch was removed from and the -L switch was added to ipastat(8)
 - All code of ipa(8) was revised, now ipa(8) tests directories and
   files in the database more carefully
 - Several bugs and memory leak with the "db_dir" parameter were fixed
 - Added new parameter "db_group"
 - Parameters "acl", "db_owner", "db_perm" have been removed

 Package changes:
 - added some HTTP and FTP mirrors;
 - removed installation of ${DSTEXAMPLEDIR} directory, because it is
   installed from the port's Makefile;
 - updated DESCR to reflect current state of IPA.


 To generate a diff of this commit:
 cvs rdiff -r1.2 -r1.3 pkgsrc/net/ipa/DESCR
 cvs rdiff -r1.4 -r1.5 pkgsrc/net/ipa/Makefile
 cvs rdiff -r1.5 -r1.6 pkgsrc/net/ipa/distinfo
 cvs rdiff -r1.4 -r1.5 pkgsrc/net/ipa/patches/patch-aa

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:
 To: gnats-bugs@gnats.netbsd.org
 Subject: Maintainer update port net/ipa 1.2.7 -> 1.2.8
 From: simon@simon.org.ua
 Reply-To: simon@simon.org.ua
 X-send-pr-version: 3.95

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.