Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Mar 2013 04:21:09 GMT
From:      Waitman Gobble <uzimac@da3m0n8t3r.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/177220: New Port: ports-mgmt/chucky
Message-ID:  <201303220421.r2M4L9Pr020825@red.freebsd.org>
Resent-Message-ID: <201303220430.r2M4U0u2059950@freefall.freebsd.org>

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

>Number:         177220
>Category:       ports
>Synopsis:       New Port: ports-mgmt/chucky
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 22 04:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Waitman Gobble
>Release:        FreeBSD 10.0-CURRENT
>Organization:
Waitman Gobble
>Environment:
FreeBSD dx.burplex.com 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r248165: Mon Mar 11 18:20:30 PDT 2013     root@dx.burplex.com:/usr/obj/usr/src/sys/FURAHA  amd64

>Description:
This program reads /var/db/pkg/local.sqlite and compares install timestamp with
date in $FreeBSD header in the Makefile of the port. If there is no $FreeBSD
header then it is assumed to be a beta port.

 Command line switches:
                -u      show ports with update status only
                -o      show ports with current status only
                -b      show ports with beta status only
                -t      show timestamps (debug, etc)
                -a      create shar of files (usefull with -a). output to stdout
                -h      help
		-i	ignore fread() errors*

NOTE: shar files are created with absolute path (ie /usr/ports/src/dir)
so executing them will restore to that path. Multiple shars are concatenated
by chucky stripping the 'exit' command from the output. (ie there is no 'exit'
in the shar output. the shar output is to stdout, if you want to save:

# chucky -b -a > save.shar

This will save all the ports marked 'beta' in the save.shar archive,
in the cwd.

Edit Makefile if you dont put stuff in /usr/local

example:
# chucky

 {OK}		p:1359956798 i:1363325950       x11/xpr 1.0.4
 {OK}		p:1342304958 i:1363325954       x11/xprop 1.2.1
 {beta}		p:---------- i:1363045617       x11/xproto 7.0.22
 {OK}		p:1362771552 i:1363325959       x11/xrandr 1.4.0
 {updates}	p:1366304958 i:1363325962       x11/xrdb 1.0.9

{OK} means there is no update available
{beta} is a beta port
{updates} means the version in /usr/ports is newer than install date

the right columns show the port location, ie /usr/ports/x11/xrdb
and the version currently installed on the system.

depends on /var/db/pkg/local.sqlite which is managed by the pkg system.
(see /usr/ports/ports-mgmt/pkg)

*ignore fread errors: if you are working on developing ports outside the
ports tree you may receive an error because the port is listed in the database
but it does not exist in the ports tree. if you use the -i flag it will continue
without an error message.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	chucky
#	chucky/Makefile
#	chucky/distinfo
#	chucky/files
#	chucky/files/pkg-message.in
#	chucky/pkg-descr
#	chucky/pkg-plist
#
echo c - chucky
mkdir -p chucky > /dev/null 2>&1
echo x - chucky/Makefile
sed 's/^X//' >chucky/Makefile << 'fea18e3eb94cc5a9e961b75a681ad9c9'
X# Created by: "Waitman Gobble" <uzimac@da3m0n8t3r.com>
X# $FreeBSD$
X# New ports collection makefile for: chucky
X# Date created: 21 March 2013
X
XPORTNAME=	chucky
XPORTVERSION=	1.0
XCATEGORIES=	ports-mgmt
XMASTER_SITES=	GH
XDISTNAME=	${GH_ACCOUNT}-${GH_PROJECT}-${PORTVERSION}-0-g${GH_COMMIT}
X
XMAINTAINER=	waitman@waitman.net
XCOMMENT=	Port installed version check/report with shar archival
X
XLICENSE=	CHUCKY
XLICENSE_NAME=	CHUCKY BSD LICENSE
XLICENSE_FILE=	${WRKSRC}/LICENSE
XLICENSE_PERMS=	${_LICENSE_PERMS_DEFAULT}
X
XLIB_DEPENDS=	pkg:${PORTSDIR}/ports-mgmt/pkg \
X		sqlite3:${PORTSDIR}/databases/sqlite3
X
XUSE_GITHUB=	yes
XGH_ACCOUNT=	waitman
XGH_PROJECT=	chucky
XGH_TAGNAME=	master
XGH_COMMIT=	075defe
X
XWRKSRC=		${WRKDIR}/waitman-chucky-075defe
X
XMAN7=		chucky.7
X
XSUB_FILES=	pkg-message
XPORTDOCS=	*
X
X.include <bsd.port.options.mk>
X
Xpost-install:
X.if ${PORT_OPTIONS:MDOCS}
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
fea18e3eb94cc5a9e961b75a681ad9c9
echo x - chucky/distinfo
sed 's/^X//' >chucky/distinfo << '35081b7f8b28dfa6cb9ed7afb4d81312'
XSHA256 (waitman-chucky-1.0-0-g075defe.tar.gz) = bf7fa32c5584725fa6c2d1d0951cf0f29488307d5a73d81b2df47d59617bc6d6
XSIZE (waitman-chucky-1.0-0-g075defe.tar.gz) = 4367
35081b7f8b28dfa6cb9ed7afb4d81312
echo c - chucky/files
mkdir -p chucky/files > /dev/null 2>&1
echo x - chucky/files/pkg-message.in
sed 's/^X//' >chucky/files/pkg-message.in << 'b2f3b59314ae92225839742968d61b83'
X************************************************************************
X
XNOTICE
X
Xman page is installed in /usr/local/share/man/man7, if you do not yet
Xhave the configuration in /etc/man.conf, add
X
XMANPATH /usr/local/share/man
X
Xto view all man pages which are installed in /usr/local/share/man/manX/
X
X
X************************************************************************
X
b2f3b59314ae92225839742968d61b83
echo x - chucky/pkg-descr
sed 's/^X//' >chucky/pkg-descr << '7e2f36e8da3e63f4c5a54beda221be60'
XThis program reads /var/db/pkg/local.sqlite and compares install timestamp with
Xdate in $FreeBSD header in the Makefile of the port. If there is no $FreeBSD
Xheader then it is assumed to be a beta port.
X
XChucky also features a shar file backup feature, which is normally used to
Xbackup 'beta' development ports.
X
XWWW:
Xhttps://dx.burplex.com/bin/chucky.html
7e2f36e8da3e63f4c5a54beda221be60
echo x - chucky/pkg-plist
sed 's/^X//' >chucky/pkg-plist << '545ad338fb0364ae2331719e9568b33d'
Xbin/chucky
545ad338fb0364ae2331719e9568b33d
exit



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



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