1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/Tools/scripts
Maxim Sobolev 4570e0b23c Strip out date/time from +++/--- headers in generated patchfiles, so that they
don't generate extra hunk each time patchfile is updated.
2004-10-14 14:39:44 +00:00
..
mkptools Actually use the user's group name, not their username, for the *GRP 2001-11-18 11:19:39 +00:00
pkg-stash Add two utilties for listing and stashing away package files obtained 2003-01-08 15:40:08 +00:00
release Modernize these two scripts a little bit to make it easier to deal 2004-06-08 21:57:01 +00:00
sunshar Add sunshar, a "secure unshar" for ports committers, which: 2004-02-28 14:29:09 +00:00
addport While generating commit message, don't lowercase the first letter if the second 2004-04-04 21:10:38 +00:00
checkcats.py Add checkcats.py - a script that verifyes that master categories in all ports 2001-12-11 10:49:51 +00:00
checknewver.sh Use 'make master-sites-all' instead of 'make -V MASTER_SITES' to obtain the list 2003-12-17 10:28:32 +00:00
checksize.sh Fill /mnt/ before each port and clear it afterward, to avoid running 2004-03-15 21:46:49 +00:00
checksum.sh Add hack for gzipped files that are not .tar.gz files and uncompress 2000-07-19 15:11:26 +00:00
chkdepschain.py - New option `-e' - threat warnings as errors; 2002-01-14 13:07:34 +00:00
chkmodules.pl support for symlinked portsdir (but no other symlinks in the ports tree) 2004-05-14 21:07:39 +00:00
chkorigin.sh added an -q option to enable usage in crontab. 2004-03-28 19:13:34 +00:00
chkversion.pl Hack in master/slave support 2004-06-04 22:23:03 +00:00
close-pr Add close-pr - a slightly hacked version of edit-pr(1) to quickly close PR. 2000-06-26 17:49:04 +00:00
consistency-check
distclean.sh Previous delta was: 2003-04-18 13:52:50 +00:00
domakedescribe Add domakedescribe and doportlint, two scripts that iterate over the ports 2004-01-19 22:35:58 +00:00
doportlint Add domakedescribe and doportlint, two scripts that iterate over the ports 2004-01-19 22:35:58 +00:00
getpr Avoid possible GNATS timeouts by using query-pr.real direclty. 2004-07-28 07:17:29 +00:00
gnomedepends.py s|pkg/PLIST|pkg-plist|g 2000-10-21 14:39:20 +00:00
modulesupdate Make modulesupdate actually work in light of split. You can't use a 2003-03-02 17:29:12 +00:00
MOVEDlint.awk - don't flag empty lines 2004-05-08 11:52:36 +00:00
parse-kdump.tcl This tool parses the output of kdump to generate a list of added 2003-04-04 12:20:54 +00:00
patchtool.py Strip out date/time from +++/--- headers in generated patchfiles, so that they 2004-10-14 14:39:44 +00:00
plist Update "plist" to understand the rest of the mtree(5) file format, 2004-02-27 21:01:02 +00:00
portsearch Catch up to new semantics of COMMENT variable (contains comment string 2003-02-10 08:56:59 +00:00
prdone 3 little scripts I use when dealing with port update PRs. 2000-05-01 19:53:54 +00:00
prpatch 3 little scripts I use when dealing with port update PRs. 2000-05-01 19:53:54 +00:00
README Add chkorigin.sh, a script that checks the ports tree for ports with a wrong 2004-03-19 11:08:09 +00:00
README.patchtool Correct usage example. 2002-07-16 08:13:54 +00:00
README.portsearch New script (and it's README) for searching the ports tree. Add this script 2000-08-28 11:37:23 +00:00
security-check.awk Add security-check.awk, a more efficient implementation of the ports 2004-01-19 22:19:00 +00:00
sunshar.rb Add sunshar, a "secure unshar" for ports committers, which: 2004-02-28 14:29:09 +00:00
update-patches Support PATCH_WRKSRC. See 2002-05-25 15:15:41 +00:00

$FreeBSD$

addport	- replacement for easy-import

consistency-check -  check whether all your ports are installed properly,
                     what files have changed, and what new files there are.
checkcats.py - verify that master categories in all ports are correct and
               report any problems.
checknewvers - checks for availability for a newest version of distfiles on
               MASTER_SITES (ftp only).
chkorigin.sh - checks all ports in the tree for a wrong PKGORIGIN.
               Run this tool after every repocopy.
close-pr  - a slightly hacked version of edit-pr(1) to quickly close PR.
de-pkg-comment - converts pkg-comment to COMMENT (will be obsoleted when
                 the mass conversion is finished)
distclean - compare md5 sums of distfiles in ports/distfiles with currently
            installed ports collection in ports/* and prompt to remove
            unmatched entries
getpr   - downloads a problem report from GNATS and attempts to extract
          the patch, shar, uuencoded file from it.
          this probably needs to be checked for potential security problems.
gnomedepends - Analyse pkg/PLIST and give an advice as to which GNOME ports
               should be listes in {RUN,LIB}_DEPENDS for this port 
plist - automate (mostly, at least) pkg-plist generation
prpatch - just does `patch $1 < pr-patch' (pr-patch is created by getpr)
prdone  - checks in the port, attempting to fill out the commit message using
          information from the problem report and then takes you into edit-pr
          so you don't forget to close the PR.
portsearch - A utility for searching the ports tree. It allows more detailed
             search criteria than ``make search key=<string>'' and accepts
             all perl(1) regular expressions.

update-patches - generates updated patches.

----------------------------------------------------------------------

consistency-check gives output like:

Not on filesystem - jade from jade-1.2.1
Only on filesystem - jadefoo
No package md5 available for lessecho
File nsgmls owned by multiple packages sp-1.3.4,jade-1.2.1
No filesystem md5 available for setuser, but it exists                          
For sgmlnorm, package md5 312d7b63d591e07629e0da4ae4a0ac07 is DIFFERENT from fs md5 of 19f1f901911b90d8e04c6ea69e1b0541!

change $do_md5 to 0 to not check md5, and $do_fs to 0 to not check for
files above those installed by packages.

----------------------------------------------------------------------

The checkcats.py script verifyes that master categories in all ports are
correct and report any problems. It doesn't require any command-line options.
Please beware that full check takes quite some time.

----------------------------------------------------------------------

getpr, prpatch and prdone are used as so:
	% cd /usr/ports/CATEGORY/PORT
	% getpr PRNUMBER
	<read diff presented to you>
	<check that there are no followups to the PR as getpr wont' split
	 them out of the PR>
	% prpatch
	<test port>
	% prdone PRNUMBER ci
	<this will attempt to fill out the cvs log message, check in the
	 port and edit-pr the problem report so you can close it>

----------------------------------------------------------------------

checksum is a script that allows checking of ports to see if their checksums
match, and if they don't, give a diff against the older version to try and
discover why the checksum didn't match.

----------------------------------------------------------------------

distclean is a script that allows to compare md5 checksums of distfiles in
ports/distfiles with list of all md5 sums listed in "md5" files in the ports
collection. After comparing, utility will prompt to remove distfiles which
doesn't have associated md5 entry (most likely outdated distfiles).

----------------------------------------------------------------------

gnomedepends is a script, which analyses pkg/PLIST and gives an advice as to
which GNOME ports should be listes in {RUN,LIB}_DEPENDS for the port to ensure
correct removal of GNOME shared directories. Usage is simple:
	% cd /usr/ports/CATEGORY/PORT
	% gnomedepends.py
	According to the contents of PLIST the port depends on the following GNOME
	port(s):

	/usr/ports/audio/gnomeaudio, for directories:
        	share/gnome/sounds

	/usr/ports/sysutils/gnomecontrolcenter, for directories:
        	share/gnome/apps

	/usr/ports/x11/gnomecore, for directories:
        	share/gnome/apps/Games

	/usr/ports/x11/gnomelibs, for directories:
        	etc/sound/events
        	etc/sound
        	share/gnome/games
        	share/gnome/pixmaps
        	share/gnome

The example above means that you need to have ${PORTSDIR}/audio/gnomeaudio,
${PORTSDIR}/sysutils/gnomecontrolcenter, ${PORTSDIR}/x11/gnomecore and
${PORTSDIR}/x11/gnomelibs listed in {RUN,LIB}_DEPENDS for this port.
Please be warned, that the this only means that the ports listed by the script
required for correct removal of GNOME shared directories, not for the port
functionality, so actual {RUN,LIB}_DEPENDS may have more entries.

----------------------------------------------------------------------
portsearch - A utility for searching the ports tree.

     portsearch is a utility to for searching of the ports tree. It permits
     much more detailed searches to be performed than ``make search
     key=<string>'' by allowing you to specify which field(s) to search. It
     also supports all valid perl(1) regular expressions for pattern matching.

     portsearch displays matching ports in the same format as ``make search''
     and also displays the number of matching ports found.

     The following command line options are supported:

	   -h	      Prints a multi-line help message and exits

	   -n name    Search for name in the name field

	   -p path    Search for path in the path field

	   -i info    Search for info in the comments field

	   -m maint   Search for maint in the Maintainer field

	   -x index   Search for index in the category field

	   -b b_deps  Search for b_deps in the build-depends field

	   -r r_deps  Search for r_deps in the run-depends field

	   -d deps    Search for deps in the both the build and run dependency
		      fields. This option behaves differently to the other op-
		      tions, see the EXAMPLES section

	   -f file    Use the index file file instead of /usr/ports/INDEX

     All searches are case-insensitive

See the file README.portsearch for further information.

----------------------------------------------------------------------

The update-patches script looks for files in $WRKSRC (if unset, this defaults
to the work/ subdirectory of the current directory) which have a matching .orig
file.  It also looks in $PATCHDIR (if unset, this defaults to the files/
subdirectory of the current directory) for patches that correspond to the first
set.  If the changes in an existing patch do not reflect the changes in the
files in $WRKSRC, the script renames the existing patch by adding the suffix
.orig and generates a new patch in its place.  If no patch existed, the new one
is created with a name that contains the path and filename of the file being
patched, except that "/" separators and "." characters are replaced by
underscores:  for example, a new patch to $WRKSRC/foo/bar.c would be created as
$PATCHDIR/patch-foo_bar_c.  If you save a .orig backup of a file, but don't
change the file, update-patches will generate an empty patch.

----------------------------------------------------------------------

NOTE: These scripts need work and are *NOT* safe to use unless you know
      what they do.  Use at your own risk.  Patches would be great, but
      it is preferred they pass through the maintainer of each particular
      script.