Commit graph

237 commits

Author SHA1 Message Date
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
Edwin Groothuis
4937bd57bd Add support for "PORTREVISION?=" and "PORTEPOCH"
Tested on: devel/gettext bump
2008-06-06 05:52:57 +00:00
Erwin Lansing
cdb5013c48 Remove support for FreeBSD 5.x 2008-06-01 09:26:12 +00:00
Andrew Pantyukhin
0b5ca793be Add a tiny sh hack - ardiff - compares two archives. 2008-05-06 16:17: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
Erwin Lansing
0a56075360 - Add support for FreeBSD 8.0
- Be more robust about param.h and allow space as well as tab as seperator
  while determining OSVERION
2007-10-25 21:51:07 +00:00
Renato Botelho
d54475429d s/query-pr.real/query-pr/ to fix getpr after freefall migration
Discussed at:	#bsdports
2007-10-15 19:37:31 +00:00
Gerald Pfeifer
957d2a35c5 Replace two further instances of /var/db/pkg by $PKG_DBDIR. 2007-09-16 22:24:12 +00:00
Gerald Pfeifer
df787b975d Use PKG_DBDIR instead of hard-coding /var/db/pkg/. Do not silently revert
to defaults for PORTSDIR and PKG_DBDIR if the respective directory does
not exist, but bail out.

Approved by:	netchild
2007-09-08 16:23:13 +00:00
Alexander Leidinger
0d7a3e7e9f explicit_lib_depends.sh:
- check if an installed libtool records dependencies recursively and
   print a warning if it does
       currently it prints the warning on every system which has libtool
       installed from ports (only my local version doesn't do this, the
       version in the ports is not correctly patched for this, a patch
       similar in complexity (= simple) like the ltdl.m4 one in the
       libtool-port-patch-directory is needed)
 - enhance the regex which is responsible to not print a dependency to
   the port we are just checking
 - add a work in progress (not executed) to collapse the USE_* which
   can have more than one value

neededlibs.sh:
 - we also care about shared libs

resolveportsfromlibs.sh:
 - take care about USE_OPENSSL, USE_EFL, USE_GL, USE_FAM, USE_OPENLDAP,
   USE_SDL
 - search in the "ldconfig -r" output if we can not find the lib ourself
 - a better way of getting the first part of the LIB_DEPENDS stuff
   (lib/libXYZ.so can be specified now too)
 - some line wrapping + whitespace
 - print the origin for the USE_* too (except USE_OPENSSL), so an user
   can make some sanity checks and the explicit_lib_depends.sh can DTRT
   if we check the USE_* port itself
 - warn if we can not determine the right component (can happen for XORG)
   unambiguously.
2007-09-04 19:32:36 +00:00
Alexander Leidinger
5c2c9f05ad One more sanity check, else /+CONTENS will be searched. 2007-08-30 16:48:33 +00:00
Alexander Leidinger
142947601f USE_FREETYPE is for v1, not for v2. Use a perfect match in the case statement. 2007-08-30 16:47:11 +00:00
Alexander Leidinger
bd34c2cc9c Do not list libs which come with the port itself. 2007-08-26 15:03:55 +00:00
Alexander Leidinger
1fc8d4fdd0 Add explicit_lib_depends.sh. 2007-08-26 15:02:24 +00:00
Alexander Leidinger
dd65a20d30 - Add USE_FREETYPE.
- Print the portsdir variable in front of the origin for easy copy und paste
  of the output.
2007-08-26 14:43:52 +00:00
Alexander Leidinger
63e512d248 We should also look into sbin/ (not only bin/ and lib/). 2007-08-24 15:30:31 +00:00
Alexander Leidinger
2733307251 explicit_lib_depends.sh shows you the current explicit dependency list of
libs for a given installed port, e.g.:
	# ./explicit_lib_depends.sh gnome-vfs-2.18.1_2
	USE_GETTEXT=yes
	USE_GNOME+=gconf2
	USE_GNOME+=glib20
	USE_GNOME+=gnomevfs2
	USE_GNOME+=libxml2
	USE_GNOME+=orbit2
	USE_ICONV=yes
	avahi-client:net/avahi
	avahi-common:net/avahi
	avahi-glib:net/avahi
	dbus-1:devel/dbus
	dbus-glib-1:devel/dbus-glib
2007-08-24 14:29:42 +00:00
Alexander Leidinger
011560cf37 Teach about USE_ICONV, USE_GETTEXT, USE_GNOME and USE_XORG. 2007-08-24 14:29:03 +00:00
Alexander Leidinger
43b63893be Add 2 scripts which help in port maintenance to list all direct library
dependencies of a port:
	neededlibs.sh
		Extract direct library dependencies (filenames) from binaries.
	resolveportsfromlibs.sh
		Prints the name(s) of ports(s) given a library filename,
		suitable for direct use (copy&paste) in LIB_DEPENDS.

Example usage is included in the scripts. The following combined usage may
be helpful for further porting/testing automation:
	resolveportsfromlibs.sh -b /usr/local $(neededlibs.sh /test/bin/*)

Requested by:	kris, lofi (sort of)
2007-08-12 12:49:23 +00:00
Gabor Kovesdan
4c9cd257fd - Extract command variable definitions from bsd.port.mk, they are now stored in
bsd.commands.mk and can be easily reused within the infrastructure.
- Revert old DESTDIR implementation.
- Add a new, fully chrooted DESTDIR implementation as bsd.destdir.mk.

Sponsored by:	Google Summer of Code 2007
Approved by:	portmgr (pav)
2007-08-04 11:37:24 +00:00
Erwin Lansing
afade85a8a ARCH may be set in the environment for cross building, so only
set it conditionally.

Submitted by:	kris
2007-06-12 15:14:29 +00:00
Erwin Lansing
87b364f5fd Set default architecture to i386. 2007-06-11 21:18:46 +00:00
Florent Thoumie
d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +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
Vasil Dimov
101df1b468 Use echo instead of printf because external commands cannot be executed
with very long arguments (>400000 characters).

The problem reveals for example if
/usr/ports/Tools/scripts/rmport -d print/ghostscript-gnu
is executed - it does
printf "%s\n" "... 451109 chars ..."

Spotted by:	rafan
2007-03-28 20:39:18 +00:00
Vasil Dimov
eed3828ab1 * Run cvs update just before cvs commit to sync a potentially changed files
in the repository. Suggested by: gabor@
* Fix typo in the output
2007-02-19 07:24:36 +00:00
Kris Kennaway
2c759cf3d0 Retire PORTOBJFORMAT 2007-02-01 03:28:03 +00:00
Erwin Lansing
f3f3875210 Drop the build on RELENG_4 2007-01-30 14:49:21 +00:00
Vasil Dimov
92615ddfc4 A bunch of cosmetic changes - add one empty line to make the output more
readable and use double quotes everywhere.
2007-01-26 14:25:39 +00:00
Vasil Dimov
a62c886fca Make output messages more useful 2007-01-26 10:19:23 +00:00
Vasil Dimov
0d451e0598 * Make it possible to skip existing dependencies and ports references in LEGAL
and continue with removal anyway. Requested by miwi@
* Pipe dependencies information (if any) through a PAGER because INDEX lines
  are very long and hard to read when wrapped
2007-01-19 15:49:49 +00:00
Vasil Dimov
59a026b0f1 Query Gnats for PRs by using the query-pr command on freefall instead of the
web-interface becase the later is not reliable.
2006-12-20 13:18:25 +00:00
Vasil Dimov
e2f1d375a7 Add check for existing non-closed PRs related to the port being removed.
If any are found then ask if the port should be skipped from removal or
removed regardless of the PRs.
2006-12-13 07:32:58 +00:00
Erwin Lansing
596b15845d Replace a simple call to localtime() to strftime() to include the
timezone.
2006-11-23 14:04:52 +00:00
Erwin Lansing
bdbae3ea52 eik@ has been inactive for quite some time and as I am running
these scripts on the cluster, transfer maintainership of these
to myself.
2006-11-23 12:16:59 +00:00
Erwin Lansing
6e65d26f6e Include a time when the script was started in the mail templates.
This script can sometimes take several hours to run on builder,
and thus leading to confusing of why it still reports an error
that was fixed in cvs some time ago.  Including the time when
the ports tree was updated should reduce some of this confusion.
2006-11-23 11:59:04 +00:00
Vasil Dimov
9125407be5 Add deprecated reason to the output of -F 2006-11-02 09:20:10 +00:00
Vasil Dimov
e1bcb99398 * Create custom commit message template and populate it with the ports
to be removed, possibly with the expiration date and deprecated reason
* If port is not marked for expiration than put "Removed" in ports/MOVED
  entry instead of "Has expired"
* Implement -a option to remove all expired ports
* Ask if the cvs diff output should be recreated/reviewed again thus
  giving the committer a chance to edit files by hand and view diff
  results afterwards
* Cosmetic changes
2006-11-01 09:57:36 +00:00
Vasil Dimov
1854c2ed1d When checking for dependencies of foocategory/barport also find constructs
like .../barport/something e.g. expect either space, slash or eol after
port's name
2006-10-05 10:40:29 +00:00
Vasil Dimov
800d19da74 When checking dependencies also look for portname references in Mk/*.mk
in addition to */*/Makefile* and ignore references in comments
2006-09-14 09:13:39 +00:00
Vasil Dimov
f5a601c10a Remove grep's -w switch from the dependency check since it misses some
dependencies. This needs some more polishing but for now it is better to
emit false positives than skip dependencies.
2006-09-12 08:35:16 +00:00
Erwin Lansing
50513d5d52 Add support for DESTDIR part I.
This commit should largele be a NOOP as it only adds support
for DESTDIR undefined. This does allow us to start testing
ports with DESTDIR set, but this is as of yet not supported.

Although this has been extensively tested on pointyhat, this
is a very intrusive change and some cases may have been
overlooked. Please contact Gabor and me if you find any.

PR:             100555
Submitted by:   gabor
Sponsored by:   Google Summer of Code 2006
2006-08-04 12:34:50 +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
Vasil Dimov
ed290037f5 Escape characters (like +) that may appear in ports' names and
break sed -E regular expressions
2006-07-05 08:31:49 +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
Erwin Lansing
7fbbcb4402 MFP4:
Actually use ${SCP_DEST_TMP} to fix the case where
        SCP_DEST_TMP != /tmp/
2006-06-22 18:52:57 +00:00
Erwin Lansing
c090c55e39 MFP4:
When copying INDEX to the server, copy it first to a staging area and
first then to the real location. The copying can take long enough for
users to get a truncated file when downloading during the upload.
2006-06-19 15:44:16 +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
Vasil Dimov
12dda3240e Add support for specifying ports to be removed as directories on the
filesystem (either absolute or relative) in addition to `category/port'.

PR:		ports/96649
Submitted by:	Cheng-Lung Sung <clsung@freebsd.org>
Reworked by:	vd
2006-05-02 11:31:54 +00:00
Vasil Dimov
8529c41f37 Improve dependency check:
When removing category/port - look if other ports' Makefiles contain
`/port' rather than `category/port', since the later misses things
like `${.CURDIR}/../port'
2006-05-02 09:16:10 +00:00