Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 2010 01:00:18 GMT
From:      Marin Atanasov Nikolov <dnaeon@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/152222: [maintainer update] ports-mgmt/pkg_add_it
Message-ID:  <201011140100.oAE10Ihq062854@www.freebsd.org>
Resent-Message-ID: <201011140110.oAE1A6sX084521@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         152222
>Category:       ports
>Synopsis:       [maintainer update] ports-mgmt/pkg_add_it
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 14 01:10:06 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Marin Atanasov Nikolov
>Release:        8.0-RELEASE
>Organization:
www.unix-heaven.org
>Environment:
FreeBSD tsunami.sofia.unix-heaven.org 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Wed May 12 22:03:20 EEST 2010     root@tsunami.sofia.unix-heaven.org:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Updating pkg_add_it(1) to release 1.3.

This release includes a lot of new features, and a was completely rewritten.

pkg-message was added to the port as well.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN pkg_add_it.bak/Makefile pkg_add_it/Makefile
--- pkg_add_it.bak/Makefile	2010-11-14 02:55:39.000000000 +0200
+++ pkg_add_it/Makefile	2010-11-14 02:38:56.000000000 +0200
@@ -1,23 +1,36 @@
 # New ports collection makefile for:	pkg_add_it
-# Date created:				05 October 2008
-# Whom:					Marin Atanasov <dnaeon@gmail.com>
+# Date created:				13 November 2010
+# Whom:					Marin Atanasov Nikolov <dnaeon@gmail.com>
 #
-# $FreeBSD: ports/ports-mgmt/pkg_add_it/Makefile,v 1.3 2009/05/24 20:21:22 dhn Exp $
+# $FreeBSD$
 #
 
 PORTNAME=	pkg_add_it
-PORTVERSION=	1.2
+PORTVERSION=	1.3
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	http://www.unix-heaven.org/ports-mgmt/
 
 MAINTAINER=	dnaeon@gmail.com
-COMMENT=	Interactive interface for the pkg_add(1) command
+COMMENT=	Interactive tool for package installation
 
 MAN1=		pkg_add_it.1
-PLIST_FILES=	sbin/pkg_add_it
+MAN5=		pkg_add_it.conf.5
+PLIST_FILES=	sbin/pkg_add_it \
+		etc/pkg_add_it.conf
 
 do-install:
+	${CP} ${WRKSRC}/pkg_add_it.conf ${PREFIX}/etc/pkg_add_it.conf
 	${INSTALL_PROGRAM} ${WRKSRC}/pkg_add_it ${PREFIX}/sbin/pkg_add_it
 	${INSTALL_MAN} ${WRKSRC}/pkg_add_it.1 ${MAN1PREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/pkg_add_it.conf.5 ${MAN5PREFIX}/man/man5
+
+post-install:
+	${ECHO_CMD} -n "s/@PKG_RELEASE@/" > ${WRKDIR}/pkg_add_it.sed
+	${ECHO_CMD} "`${UNAME} -r | ${CUT} -d '-' -f 1,2 | ${TR} "[:upper:]" "[:lower:]"`/g" >> ${WRKDIR}/pkg_add_it.sed
+	${SED} -ie "s/@PKG_ARCH@/${ARCH}/g" ${PREFIX}/etc/pkg_add_it.conf
+	${SED} -ie -f ${WRKDIR}/pkg_add_it.sed ${PREFIX}/etc/pkg_add_it.conf
+	@${ECHO_CMD}
+	@${CAT} ${PKGMESSAGE}
+	@${ECHO_CMD}
 
 .include <bsd.port.mk>
diff -ruN pkg_add_it.bak/distinfo pkg_add_it/distinfo
--- pkg_add_it.bak/distinfo	2010-11-14 02:55:57.000000000 +0200
+++ pkg_add_it/distinfo	2010-11-14 02:38:56.000000000 +0200
@@ -1,3 +1,3 @@
-MD5 (pkg_add_it-1.2.tar.gz) = af83709d750adfe9e6509c6f31f4a16d
-SHA256 (pkg_add_it-1.2.tar.gz) = a760cba3b309d7b9b3b01113882b2747a7c54483ecfd3678b78643e0244938d2
-SIZE (pkg_add_it-1.2.tar.gz) = 9434
+MD5 (pkg_add_it-1.3.tar.gz) = 2bcae1b920ed8d17de003a17599088ad
+SHA256 (pkg_add_it-1.3.tar.gz) = ca1af2f653adcb2944e878ae506064b41be84b4ebcc76babd798aeb998d421c5
+SIZE (pkg_add_it-1.3.tar.gz) = 126464
diff -ruN pkg_add_it.bak/pkg-descr pkg_add_it/pkg-descr
--- pkg_add_it.bak/pkg-descr	2010-11-14 02:56:22.000000000 +0200
+++ pkg_add_it/pkg-descr	2010-11-14 02:38:56.000000000 +0200
@@ -1,18 +1,22 @@
-This program provides an interactive interface for the pkg_add(1) tool.
+pkg_add_it(1) is a tool for interactive installation of packages.
 
-It's purpose is to search for a package pattern, making easier for the user
-to find a package and install it. This is not a clone of the pkg_add(1) tool.
-It uses pkg_add(1) to install packages while providing an interactive 
-interface, so the user could easily choose and install a given package.
+It's goal is to make easier the process of finding and installing 
+new packages, and is useful for both - novice users, 
+and system administrators as well.
 
-The pkg_add_it(1) tool supports local and remote pattern search:
+pkg_add_it can be used as well as a "browser" to the INDEX file,
+allowing you to get the information you need about a package.
 
-   * Local pattern search - recursively scanning a directory for 
-     a given package pattern
-   * Remote pattern search - accomplished by scannig the INDEX file
-     for every package that matches the pattern
+An example output of package dependencies list created by pkg_add_it(1):
 
-To learn more about the pkg_add_it(1) tool read the manual page.
+[ NOT INSTALLED ]     devel/glib-2.20.5                   
+[ NOT INSTALLED ]        |\___ devel/gettext-0.17_1                
+[ NOT INSTALLED ]        |    \___ converters/libiconv-1.13.1               
+[  PRESELECTED  ]        |\___ converters/libiconv-1.13.1               
+[ NOT INSTALLED ]        |\___ devel/pcre-7.9                      
+[ NOT INSTALLED ]        |\___ lang/perl-5.8.9_3                  
+[   INSTALLED   ]        |\___ devel/pkg-config-0.23_1             
+[ NOT INSTALLED ]         \___ lang/python26-2.6.2_3              
 
 Author: Marin Atanasov Nikolov <dnaeon@gmail.com>
 WWW: http://www.unix-heaven.org/index.php?page=pkg_add_it
diff -ruN pkg_add_it.bak/pkg-message pkg_add_it/pkg-message
--- pkg_add_it.bak/pkg-message	1970-01-01 02:00:00.000000000 +0200
+++ pkg_add_it/pkg-message	2010-11-14 02:38:56.000000000 +0200
@@ -0,0 +1,13 @@
+NOTICE: pkg_add_it(1) has been installed
+
+Please check the pkg_add_it(1) and pkg_add_it.conf(5)
+manual pages for more information about pkg_add_it(1).
+
+Please refer to the above manual pages in order
+to configure how you want pkg_add_it(1) to work.
+
+You might want to change some of the default options
+from the configuration file that were set.
+
+Please check and verify that PKG_RELEASE option is 
+set properly right after installation of the program.


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011140100.oAE10Ihq062854>