Commit graph

237 commits

Author SHA1 Message Date
Vasil Dimov
b2a9550574 Add support for removing multiple ports which depend on each other 2006-04-17 08:08:37 +00:00
Vasil Dimov
dffa807775 Quote ${1} so we don't get ``[: =: unexpected operator'' if the script
is started without arguments.
2006-04-12 05:23:04 +00:00
Vasil Dimov
ffc261a29e Add the script I use to remove ports so everyone
can benefit (or suffer :-) from it.
2006-04-10 05:54:50 +00:00
Edwin Groothuis
faaea2b718 Warn if there are duplicate MD5/SHA256/SIZE statements for a single file 2006-01-24 21:53:51 +00:00
Edwin Groothuis
295732eff2 Small tool to check the necessary lines in the distinfo files, based
on the contents of the distinfo files.

#
# Small tool to find distinfo with missing MD5/SHA256/SIZE statements,
# based on the assumption that if there is one of the MD5/SHA256/SIZE
# statements, then there should be all of them (except for SIZE
# when MD5/SHA256 is set to IGNORE).
#
# Usage: distinfochecker [-v] [-d directory]
# -v    - verbose (print)
# -d    - use directory instead of /usr/ports
#
2006-01-24 07:30:07 +00:00
Kris Kennaway
b3f6037efa Support 7.x INDEX builds
Add a few more local configuration variables
Minor cleanups
2006-01-22 20:45:11 +00:00
Daichi GOTO
e1ad7a3739 Add portsvar.sh schell script into Tools/scripts.
portsvar.sh
  - print out variable defined through bsd.port.mk

example:
   % portsvar.sh PORTSDIR OSVERSION
   PORTSDIR = /usr/ports
   OSVERSION = 600034
   % portsvar.sh -e "PORTS[^_]"
   PORTSDIR = /usr/ports
   PORTSSUPFILE = /usr/share/examples/cvsup/ports-supfile
   % portsvar.sh USE_RUBY=yes RUBY_VER RUBY_ARCH
   RUBY_VER = 1.8
   RUBY_ARCH = i386-freebsd6
   % portsvar.sh -w ruby RUBY_VER RUBY_ARCH
   RUBY_VER = 1.8
   RUBY_ARCH = i386-freebsd6
   % portsvar.sh -w kde -e KDE_
   KDE_MAINTAINER = will@FreeBSD.org
   KDE_ORIGVER = ${KDE_VERSION}
   KDE_PREFIX = ${LOCALBASE}
   KDE_VERSION = 3.5.0
   MASTER_SITE_KDE_kde = ${kmaster:S@%SUBDIR%/@@g}
   % portsvar.sh -a
   list all variables through bsd.port.mk
   % portsvar.sh -a -w kde
   list all variables through bsd.port.mk including kde

portsvar.sh is easy tool to check out the variables used in
/usr/ports/Mk/bsd.*.mk.
2006-01-11 07:06:51 +00:00
Edwin Groothuis
3d8bb0ca76 Utility: A tool to identify similar pkg-descr files
The ports tree contains many tools with almost-similar names
	and no helpful pkg-descr difference. The goal of pkg-descr
	would be to aid the user in his choice of port version.
	Ergo, similar pkg-descr files are bad.

PR:		ports/89432
Submitted by:	Jonathan <afarsec@012.net.il>
2005-11-26 01:15:20 +00:00
Renato Botelho
2a6ad7961f - Add a new option -L, it works like -l but uses pkg-descr to create
commit message.

Approved by:	will (maintainer)
2005-10-04 16:26:37 +00:00
Kris Kennaway
310ce3b0a4 Remove some hardcoded values to hopefully stop random users from shooting
their feet off in public.

Suggested by:	adamw
2005-09-08 17:57:37 +00:00
Pav Lucistnik
6d4f3ffef5 - Handle different INDEX filename on 5.X and above
PR:		ports/85281
Submitted by:	Vasil Dimov <vd@datamax.bg>
2005-09-04 23:11:15 +00:00
Joe Marcus Clarke
898c84cdf7 Add prototypes for all the subroutines which fixes compilation with
Perl 5.8.7.

Reported by:	mezz
2005-07-10 22:18:55 +00:00
Volker Stolz
ac482a872e Fix typos
Approved by: sobomax
2005-04-18 14:03:05 +00:00
Volker Stolz
c53968b206 As discussed on the cvs-ports-list, make 'addport' print a warning if the directory
name contains upper-case characters as it makes finding a port harder.

PR:		ports/79679
Approved by:	will, portmgr(krion)
2005-04-12 11:03:49 +00:00
Anton Berezin
bbd85008bd Add a splitpatch.pl utility, a small script to convert multi-file
patches to several appropriately named single-file patches.

Requested by:	flz
2005-04-12 10:56:08 +00:00
Florent Thoumie
75dd621ca0 - Add bump_revision.pl, a small script to bump the PORTREVISION variable
of ports which are depending on a port with a changed shared lib version.

Edwin dedicates this script to his son Dirk, born few days ago :)
Congrats (again) !

PR:		ports/63915
Submitted by:	edwin
2005-04-12 09:22:59 +00:00
Florent Thoumie
a9c04539e5 - Replace pkg-comment with COMMENT to reflect latest (*sigh*) changes
in the ports framework.

PR:		ports/62767
Submitted by:	Igor Pokrovsky <tiamat@comset.net>
Approved by:	maintainer timeout (> 8 months)
2005-04-11 22:21:41 +00:00
Volker Stolz
3ddc5c643b Checkout Templates from CVS as well since ports with GNU_CONFIGURE will
need them when building from 'addport -a -t'.

Approved by: will
2005-03-20 17:32:52 +00:00
Kris Kennaway
3038d3579a Document the check-latest-link and tindex scripts 2005-01-24 07:22:38 +00:00
Kris Kennaway
4649cc8071 Add the script I use to look for duplicate LATEST_LINK entries and to
send nag-mails to the responsible maintainers.
2005-01-24 07:20:01 +00:00
Kris Kennaway
738cf264d0 This is the script I use to build indexes for all supported ports branches,
which are copied to www.freebsd.org for use by 'make fetchindex', as well
as the source of build failure reports on ports@FreeBSD.org when it is
broken.
2005-01-24 07:18:33 +00:00
Kirill Ponomarev
043f5658ce Remove traling spaces. 2005-01-09 10:21:17 +00:00
Dima Dorfman
77414b4220 Newline should go after the terminating punctuation (fix typo).
Approved by:	will
2004-11-07 04:09:39 +00:00
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
Kirill Ponomarev
8f11239294 Avoid possible GNATS timeouts by using query-pr.real direclty. 2004-07-28 07:17:29 +00:00
Murray Stokely
23cad417ec Modernize these two scripts a little bit to make it easier to deal
with 5.X or 4.X package sets (i.e., INDEX vs INDEX-5 and tgz vs tbz)

OKed by:    marcus
2004-06-08 21:57:01 +00:00
Oliver Eikemeier
52ba8d8267 Hack in master/slave support 2004-06-04 22:23:03 +00:00
Oliver Eikemeier
5a9ce724fa parse $FreeBSD$ with yyyy-mm-dd format dates 2004-05-30 21:12:34 +00:00
Oliver Eikemeier
890f926dbd protect $FreeBSD: ... $ from being expanded
Noticed by:	mat
2004-05-30 15:15:54 +00:00
Oliver Eikemeier
0d19350b78 don't terminate the log entry with the first hyphen 2004-05-30 15:09:11 +00:00
Oliver Eikemeier
ea2c46a9b4 - make somewhat more robust against a corrupted ports tree
- CC committers and maintainer [1]
- include affected ports in the subject line [2]
- do a CVS log of the version checked out [3]

Suggsted by:	Ade Lovett <ade@FreeBSD.org> [1]
		Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.net> [2]
		Pav Lucistnik <pav@FreeBSD.org> [3]
2004-05-30 10:44:51 +00:00
Kirill Ponomarev
a78c230b4a - Remove 'pkg-plist' from required files
Approved by:	sobomax
2004-05-27 08:49:29 +00:00
Oliver Eikemeier
2550a13d0b - fix a bug handling the maintainer field when ALLPORTS is used
- add an option to watch for maintainer changes

- change watch regex to match PKGORIGIN, not PKGNAME
2004-05-21 16:23:10 +00:00
Oliver Eikemeier
8e5aea1bea Turn chkversion into an all-dancing, all-singing notification tool.
You can even get notified of version changes in your favourite
perl modules by setting
  WATCH_REGEX='p5-.*'

Plus, it has a nice configurable nagging option.
2004-05-19 14:30:25 +00:00
Oliver Eikemeier
f21b7ffdfa small optimazation: don't compare versions that are equal 2004-05-18 08:53:39 +00:00
Oliver Eikemeier
ed499309f3 check only ports connected to the build. 2004-05-17 17:09:01 +00:00
Oliver Eikemeier
3f5f7aca90 - integrated chkorigin
- eliminated shell usage [1]

Submitted by:	mat [1]
2004-05-17 00:04:56 +00:00
Oliver Eikemeier
6c992223ae FWIIW, spawn fewer processes. 2004-05-16 10:46:47 +00:00
Oliver Eikemeier
1af7a456da support for symlinked portsdir (but no other symlinks in the ports tree)
chkversion: support for CVS blame with env CVSBLAME=yes
2004-05-14 21:07:39 +00:00
Oliver Eikemeier
1e3bf4436f add support for ignoring local ports / categories:
env 'EXCLUDE=local devel/local' /usr/ports/Tools/scripts/chkmodules.pl
2004-05-14 18:03:55 +00:00
Oliver Eikemeier
2b9f8d3add added chkversion, a script that ensures that PORTVERSIONs don't go backwards 2004-05-14 12:35:20 +00:00
Oliver Eikemeier
165c67df46 add a perl script to check CVSROOT-ports/modules,
based on a shell script by Clement Laforet.
2004-05-14 01:58:16 +00:00
Oliver Eikemeier
fbb1a3869a - don't flag empty lines
- callable without arguments:
  /usr/ports/Tools/scripts/MOVEDlint.awk
- do CVS annotate when called with env CVS=yes
2004-05-08 11:52:36 +00:00
Oliver Eikemeier
3b5d63ae7b awk script to check MOVED for consistency
Usage:
  [env PORTSDIR=/usr/ports] awk -f MOVEDlint.awk /usr/ports/MOVED
2004-05-08 02:46:29 +00:00
Mathieu Arnold
6e5777c670 While generating commit message, don't lowercase the first letter if the second
is upper case (ie : don't end up with pEAR)

Approved by:	will
Asked by:	thierry
2004-04-04 21:10:38 +00:00
Oliver Eikemeier
74123e9733 added an -q option to enable usage in crontab.
Suggested by:	erwin
2004-03-28 19:13:34 +00:00
Mathieu Arnold
ba74778208 Fix a bug arising when you added a port which should have been at the end of
<category>/Makefile, and ended up at the begining

Approved by:	will
2004-03-20 18:52:33 +00:00
Oliver Eikemeier
8d16127344 Add chkorigin.sh, a script that checks the ports tree for ports with a wrong
PKGORIGIN. Useful especially after repocopies.

  env PORTSDIR=/usr/ports sh /usr/ports/Tools/scripts/chkorigin.sh

Approved by:	marcus (portmgr)
2004-03-19 11:08:09 +00:00
Trevor Johnson
dfc4c0a7ce Fill /mnt/ before each port and clear it afterward, to avoid running
out of inodes.
2004-03-15 21:46:49 +00:00
Akinori MUSHA
3d30f7c9c7 This script had served its purpose. 2004-03-14 11:48:40 +00:00
Trevor Johnson
d042f83b86 Add note about FETCH_BEFORE_ARGS=-s. 2004-03-12 20:03:51 +00:00
Trevor Johnson
fc9fc69007 script for finding "size mismatch" and "size unknown" errors 2004-03-12 18:56:53 +00:00
Akinori MUSHA
ac6314f977 Add sunshar, a "secure unshar" for ports committers, which:
- Does not execute unknown commands nor call sh(1) at all.
  - Does not overwrite existing files by default.
  - Does not extract files into upper directories.
  - Does have a dry run (-n) flag to see what would have been extracted.
  - Does have a strip (-p N) flag to strip any number of levels from
    pathnames.

It (so far) only supports shell archives made with BSD shar.
2004-02-28 14:29:09 +00:00
Brian Feldman
d7e662de4c Update "plist" to understand the rest of the mtree(5) file format,
thus fixing the extra-@dirrm-problem once the base mtree files
document the extra symlinks that are part of the local/etc. trees.
2004-02-27 21:01:02 +00:00
Alex Dupre
0374da0b6e - Fix synopsis
- Add 'ports/' PR category to commit log

Approved by:	will
2004-01-23 07:28:54 +00:00
Joe Marcus Clarke
83c1f7ffe2 Add domakedescribe and doportlint, two scripts that iterate over the ports
tree, and run "make describe" and portlint respectively.  They can be useful
as automated linting tools.

PR:		59226
Submitted by:	linimon
2004-01-19 22:35:58 +00:00
Joe Marcus Clarke
63f09d3369 Add security-check.awk, a more efficient implementation of the ports
system's security checking algorithm.  This will be used in the upcoming
changes to bsd.*.mk.

PR:		55331
Submitted by:	Eugene M. Kim <ab@astralblue.com>
2004-01-19 22:19:00 +00:00
Dmitry Sivachenko
cb132627e5 When suggesting to add new port's submitter to Contributors' List,
also print the exact location of the file to checkout.
This is for those who rarely adds new ports and do not remember the
location of Additional FreeBSD Contributors article.

Approved by:	will
2004-01-07 20:03:52 +00:00
Pete Fritchman
6160a79b6c Refactor how we format the autofill message. With the slightly questionable
Perl before, sometimes we would word wrap too soon.  Now we should never
generate a line more than 72 characters long (but as close to 72 characters
long as we can without breaking up a word).

Approved by:	will (maintainer)
2004-01-06 06:04:31 +00:00
David E. O'Brien
5dda2933f1 There is nothing "future" about 'addport'. 2004-01-02 23:27:29 +00:00
Dmitry Sivachenko
75122bde71 Use 'make master-sites-all' instead of 'make -V MASTER_SITES' to obtain the list
of master sites.
Before that %SUBDIR% was not expanded and the resulting URL was malformed.

L-o-o-o-ng maintainer timeout waiting for review of a slightly different
solution.
2003-12-17 10:28:32 +00:00
Dag-Erling Smørgrav
cc1020551b fetch(1)'s -b and -t options were deprecated years ago, so stop using them. 2003-11-12 15:09:12 +00:00
Alexander Nedotsukov
23ee68125d Fix -l option comment removing obsolete pkg-comment reference.
Approved by: will
2003-09-29 02:39:50 +00:00
Mathieu Arnold
dd5899bd4d When using addport on freefall, there's no need to ssh freefall once more to
use modulesupdate.

Approved by:	will
2003-09-02 15:33:46 +00:00
Maxim Sobolev
1ddaf006e0 Previous delta was:
Submitted by:	ru
2003-04-18 13:52:50 +00:00
Maxim Sobolev
a346c15b29 Clean up empty dirs. 2003-04-18 13:51:49 +00:00
Maxim Sobolev
d684f40af6 Speed-up a bit when user keeps his working directories in the ports tree
(doesn't use WRKDIRPREFIX).

Submitted by:	ru
2003-04-08 13:36:45 +00:00
Edwin Groothuis
452a17f4c0 This tool parses the output of kdump to generate a list of added
and removed files.

This can be used as the basis of a pkg-plist, or even just for
curiosity about what files something is touching.

Fairly raw at the moment, and doubtless inefficient, but it should
make a useful tool for port creators.

PR:		ports/47424
Submitter:	Daniel O'Connor <doconnor@gsoft.com.au>
2003-04-04 12:20:54 +00:00
Joe Marcus Clarke
bd948000d0 Sort the non-dirrm entries, and reverse sort the dirrm entries.
Reviewed by:	green
2003-03-28 05:08:03 +00:00
Will Andrews
7ac6ca52e1 Make modulesupdate actually work in light of split. You can't use a
CVSROOT that's readonly.
2003-03-02 17:29:12 +00:00
Peter Wemm
796330dcfb Update for post-repo-split. s/ncvs/pcvs/ so that the default root is
pcvs.freebsd.org:/home/pcvs
2003-02-28 19:49:31 +00:00
Mario Sergio Fujikawa Ferreira
2dc2732c98 Another try at fixing the "adding to CVSROOT/modules from remote
hosts (non-freefall)" bug: add '-A' argument to ssh(1) command line
for accessing host cointaining modules file. This should fix the
bug for ssh-agent(1) users. Others can just switch to using
ssh-agent(1).

Approved by:	will (maintainer)
2003-02-23 20:06:06 +00:00
Akinori MUSHA
1520142bc7 Handle '#' and '$' in pkg-comment properly. 2003-02-21 13:12:02 +00:00
Maxim Sobolev
307e2a0837 - pkg-comment is no longer mandatory;
- ignore patchfiles ending with `,v' or '.orig'.
2003-02-21 00:48:19 +00:00
Akinori MUSHA
ce03f12ae5 Add de-pkg-comment. 2003-02-18 12:45:59 +00:00
Akinori MUSHA
a25c270b0e Add de-pkg-comment, a ruby script to convert pkg-comment to COMMENT. 2003-02-18 12:42:44 +00:00
Norikatsu Shigemura
b4b7d18cdf Change how to get CATEGORIES tag from new port for slave port.
Approved by:	will
2003-02-16 15:23:21 +00:00
Kris Kennaway
5ead3c9bf0 Catch up to new semantics of COMMENT variable (contains comment string
itself, instead of pointing to pkg-comment)
2003-02-10 08:56:59 +00:00
Will Andrews
c65c37a41b Attempt to defuse problems from developers who don't have the correct
ssh setup in order for addport to do CVSROOT/modules correctly.
2003-01-30 17:28:34 +00:00
Mario Sergio Fujikawa Ferreira
11b467a83a Add both hungarian and portuguese l10n prefixes to syncronize with
portlint port

Approved by:	maintainer
2003-01-23 07:05:24 +00:00
Murray Stokely
6040f01eef Update this script to deal with .tbz packages. 2003-01-20 06:27:56 +00:00
Peter Pentchev
77ec5aff0a Add two utilties for listing and stashing away package files obtained
from recursive dependency builds a la:

  make DEPENDS_TARGET='install package clean' all install package clean

The pkg-list script obtains a list of the packages in the dependency
directories; the pkg-stash script moves them away to a predefined
directory, adding a timestamp to the package file name.  This is
convenient for keeping ready-built packages for system rescue
activities.
2003-01-08 15:40:08 +00:00
Alan Eldridge
ee95760eb8 unbroke addport by petef 2002-11-19 14:30:54 +00:00
Pete Fritchman
b0ca12cd09 Use 'cvs ci -F ...' instead of setting the log file with EDITOR="cp ...".
This fixes addport for me on -stable (cvs was erroring out), and also
fixes addport when you have the EDITOR environment variable set.

Approved by:	will
2002-11-13 15:00:00 +00:00
Will Andrews
e9a43d0120 I never thought I'd change this code, but a change was required to make
sure cvs -R is enforced for freefall !=n cvs.  And it's a Bad Thing(TM)
that a piece of code addport depended on wasn't in the CVS tree anyway.
2002-10-14 08:47:42 +00:00
Will Andrews
59a2c2fb8b Modifications to support ncvs.freebsd.org != freefall.freebsd.org. This
actually simplifies some of the code and makes other parts more complicated.

Tested by:	www/mod_filter && (after bugfixes) sysutils/sjog
Noticed by:	ijliao (by way of peter)
2002-10-14 08:45:57 +00:00
Will Andrews
1bd9bb95e8 Add 650MB for the 4th CD since it's all just packages. 2002-10-08 04:23:59 +00:00
Murray Stokely
048d0b8a8e Increase the available space for packages on disc #1 of the package
split.

Approved by:	portmgr (will), re
2002-10-08 04:08:39 +00:00
Maxim Sobolev
2151ac0d94 Correct usage example. 2002-07-16 08:13:54 +00:00
Hye-Shik Chang
cd4a3ff133 Add l10n prefix to default module name.
Approved by: will
2002-07-07 00:05:11 +00:00
Will Andrews
46c1ad877a Use correct variable for symlinking src scripts. 2002-06-01 22:44:50 +00:00
Trevor Johnson
27ef913f54 Support PATCH_WRKSRC. See
http://people.freebsd.org/~trevor/ports/update-patches-1.411.diff
for the accompanying patch to bsd.port.mk.

PR:	24292
2002-05-25 15:15:41 +00:00
Will Andrews
94ebfe0c5f Track setup.sh usage. 2002-05-20 08:29:21 +00:00
Will Andrews
032f980d96 Use the right variable name. 2002-05-20 08:16:44 +00:00
Will Andrews
90405e668b Use a RE to find the X dependency instead of hardcoding. 2002-05-20 07:50:16 +00:00
Will Andrews
4230758a38 Streamline instructions a little more. 2002-05-20 07:31:51 +00:00
Will Andrews
13f0dec174 Add this makefile to help people who are performing package splits to
generate the correct environment in which to do them.
2002-05-20 07:19:07 +00:00
Will Andrews
91a4623523 Add CD configs for use by these scripts. 2002-05-20 07:14:42 +00:00
Will Andrews
7fde760081 More useful exit if dir not passed. 2002-05-16 03:24:44 +00:00
Will Andrews
a2d1f26f29 Accept dir as argument instead of hardcoding. 2002-05-16 03:21:44 +00:00