Commit graph

83 commits

Author SHA1 Message Date
Mathieu Arnold
9d7a606915 Use make(1) to extract variables from a Makefile, not grep.
PR:		212486
Submitted by:	mat
Approved by:	crees (maintainer)
Sponsored by:	Absolight
2016-09-08 12:49:02 +00:00
Matthew Seaman
27114e8d9c Fix the '-a' option to ${PORTSDIR}/Tools/scripts/addport
Summary:
Currently addport -a ends up running a command line like:

   make  PORTSDIR="/tmp/ap.BsOuZJBy" clean check-categories

where the temporary directory has only parts of the ports tree
(specifically bits under ${PORTSDIR}/Mk) checked out.  This can't work
as 'make check-categories' needs to see the entire ports tree checked
out.

Instead, run the checks specified by '-a' and '-t' with the value of
$PORTSDIR from the environment.

Reviewers: crees

Reviewed By: crees

Subscribers: mat

Differential Revision: https://reviews.freebsd.org/D7525
2016-08-17 09:14:35 +00:00
Ruslan Makhmatkhanov
ea6db28b34 Let addport script to use svnlite if available
1. Check if svnlite is available and use it by default, else: use svn
2. Dehardcode svn binary name in shell calls, to make both svn/svnlite
work

Approved by:	crees (maintainer)
2015-09-25 19:29:48 +00:00
Christian Weisgerber
4399edafd2 Default to repo.FreeBSD.org for commits, as urged by our repo meister.
Approved by:	crees
2015-09-15 15:31:54 +00:00
Mathieu Arnold
16c7163fe6 Don't add ports/ to the PR line.
Sponsored by:	Absolight
2015-01-27 13:38:01 +00:00
Chris Rees
d8fec0cdc6 Require versions of perl supporting smartmatch operator (~~)
Submitted by:	az
2013-05-29 19:20:52 +00:00
Chris Rees
9644ddfac7 Fix -c option
PR:		ports/178193
Submitted by:	tota
2013-05-12 16:17:21 +00:00
Chris Rees
36897c327b Use MAINTAINER line for Submitted by: if Created by: does not exist.
Still prefer Created by because we still don't use real
names in MAINTAINER lines (oh please let that change....)

Submitted by:	jgh (based on)
2013-05-12 16:13:12 +00:00
Chris Rees
4d5eec6a61 Don't hardcode make
Submitted by:	az
2013-03-03 17:40:36 +00:00
Chris Rees
bf3ef9b9ab Apparently some people override PKGCATEGORY, so
manually extract it from CATEGORIES again.

Discovered by:	dinoex
2013-03-03 16:55:54 +00:00
Chris Rees
3c8ccab1c6 Add some checks for Subversion; minimum version required is 1.7, or adding
ports with subdirectories fails because of scattered .svn directories.

Original issue reported by:	netchild
2013-02-03 09:51:29 +00:00
Chris Rees
10cfa863de Strip svn:executable just in case it's been set
Reported by:	db
2012-12-09 18:59:45 +00:00
Chris Rees
bcc0be2d81 Freefall doesn't have LWP::Simple, so use /usr/bin/fetch to reduce dependencies
Noticed by:	thierry
Feature safe:	yes
2012-10-29 11:37:56 +00:00
Guido Falsi
7312e64f64 - Fix reference to the Additional Contributors' list due to renaming
to .xml in r39631

Approved by:	crees
Feature safe:	yes
2012-10-25 21:30:57 +00:00
Alex Dupre
7185e69c75 Clean-up command-line options.
Approved by:	crees
2012-10-09 15:55:15 +00:00
Chris Rees
84a9fa5eb6 bsd.port.mk handles getting the primary category for us
Since Created by: line appears to be popular, get Submitted by: from that

Old-style Makefile headers should no longer be used
2012-09-20 19:25:59 +00:00
Chris Rees
028474b3d4 Accepts the new svn_revision tag in the removed ports xml database.
Apologies for the complexity of the code; it's optimised for speed.  Soon I
will be able to remove the section working with dates.
2012-09-16 13:31:39 +00:00
Chris Rees
800b5d1d40 Now that the headers have been removed, we no longer get the Whom line from
which to acquire the Submitted by: line.

It should be reasonable to simply use the MAINTAINER line; unfortunately we
lose the real name and only get the email address.
2012-08-31 18:40:40 +00:00
Chris Rees
e7045e4591 Fix the -y option to test for possible duplicate ports; use INDEX instead of
modules file that was removed.

It's fast, use it!
2012-08-25 12:02:28 +00:00
Chris Rees
9ee7e5adda - Look for older versions of ports to copy over before committing.
Requested by:	several

- Remove older readded ports from MOVED

- Tighten up find syntax (split by null and use -print0)
2012-08-21 10:20:51 +00:00
Chris Rees
139fb2b37a Don't replace - with _ in category variable.
This was required with CVS, since the category was checked out as a module, but
the directory name is used with svn.

For example:

pcvs co ports_ports_mgmt

svn co $ports/head/ports-mgmt

Submitted by:	swills
2012-08-10 10:49:36 +00:00
Beat Gaetzi
6228337952 - Update addport and rmport to work with Subversion
Submitted by:	crees, miwi
2012-07-15 20:57:22 +00:00
Chris Rees
343b4bb879 - Modify Additional Contributors path to match svn
- Take maintainership

Approved by:	garga (maintainer)
2012-05-30 18:54:01 +00:00
Chris Rees
5d4b8b15b0 Add option (-y) to check for similarly named ports.
PR:		ports/159841
Submitted by:	crees (me)
Approved by:	garga (maintainer)
2011-08-29 14:54:48 +00:00
Steve Wills
c1c18af0fe - Back out category check for now 2011-08-16 00:09:12 +00:00
Steve Wills
4a09663ed3 - Remove obfuscation of submitter email at request of dougb
- Add check that port is in right directory as I've been bitten by this
2011-08-15 21:21:41 +00:00
Renato Botelho
390fe1afe5 Change shebang to #!/usr/bin/env perl, as required by bapt@ 2011-07-27 17:18:26 +00:00
Romain Tartière
4a54a88a4f - Unbreak the -n flag;
- Remove invalid reference to freefall.

Approved by:	garga
2010-06-06 09:30:54 +00:00
Dirk Meyer
5e55949069 - allow addport to work in ports-mgnt again
Approved by:	garga, drso, flz
2010-03-25 15:44:17 +00:00
Maxim Sobolev
3fe7e87724 Make sure we don't add ${WRKDIR}. 2008-10-21 21:32:08 +00:00
Erwin Lansing
e4bbe0c85e CVSROOT/modules no longer contains an entry per port, remove support
for this from these scripts.
2008-06-19 22:09:01 +00:00
Renato Botelho
e89241beff Fix a problem when add new ports on ports-mgmt category. ports-mgmt/Makefile
lines has 3 spaces before SUBDIR word and all other categories has 4.

I've asked pav@ if there is a default format of category Makefiles and he said
the number of spaces doesn't matter, so, i fix addport to respect the current
number of spaces and/or tabs the file has.

Reported by:	miwi, erwin
2007-12-19 16:54:37 +00:00
Renato Botelho
75b87da473 Fix addport to work correctly with ports-mgmt category.
Reported by:	miwi
Tested by:	miwi
2007-04-20 12:45:01 +00:00
Shaun Amott
068a568fca Add an option to the addport script: -b requests that any files in
${FILESDIR} which look like patches be treated as binary files. This
prevents RCS tags in patch fragments causing a problem for CVS.

Approved by:	garga (maintainer),
		ahze (mentor, implicit)
2006-07-14 01:49:35 +00:00
Renato Botelho
0bc560fc74 When automatic commit log is generated, change @ to " at " on submitter email
to prevent spam
2006-07-04 23:12:10 +00:00
Renato Botelho
3cf8cfc8cd - Change addport script to do the job locally instead connect to freefall every
time to add a new module. If you want to still use old way, just use
  "-M freefall.FreeBSD.org" option
- Take addport maintainership
- When modulesupdate fail, ask user to retry
- Change modulesupdate to work fine with addport

Approved by:	will (maintainer)
2006-05-16 15:44:29 +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
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
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
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
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
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
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
Alex Dupre
0374da0b6e - Fix synopsis
- Add 'ports/' PR category to commit log

Approved by:	will
2004-01-23 07:28:54 +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
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