aboutsummaryrefslogtreecommitdiff
path: root/Tools/scripts/mkptools
Commit message (Collapse)AuthorAgeFilesLines
* Actually use the user's group name, not their username, for the *GRPNeil Blakey-Milner2001-11-181-1/+1
| | | | | | | | variables passed to the ports system. For example, use 'wheel' instead of 'root' for root. Notes: svn path=/head/; revision=50183
* Use 'id -un' and 'id -gn' for user and group information, not 'logname'.Neil Blakey-Milner2001-08-173-7/+80
| | | | | | | | | | Add mkppackage, which will create a "fake"-style package, but not really. It doesn't try fake PREFIX and such to the build (it's not really possible anyway yet), but it uses pkg_create's '-s' option to pretend the package generated was installed in ${PREFIX}. Notes: svn path=/head/; revision=46358
* Be more specific in trying to exclude man pages - look for 'man/man',Neil Blakey-Milner2001-04-021-1/+1
| | | | | | | not just 'man'. This makes the 'manage_*' from Zope work. Notes: svn path=/head/; revision=40742
* Steal the 'hmake' variable building from mkpinstall. This wasn'tNeil Blakey-Milner2001-04-021-4/+6
| | | | | | | properly fixing the username in the *OWN variables passed to make(1). Notes: svn path=/head/; revision=40741
* Do not hardcode /tmp as a temp directory base, try $TMPDIR, $TMP andPeter Pentchev2001-02-222-4/+41
| | | | | | | | | | the system temp dir as given by paths.h (paths.ph) in this order. Approved by: nbm Perl-fu by: des, Tony Finch <dot@dotat.at> Notes: svn path=/head/; revision=38611
* Some minor additions so that we act a bit more like NetBSD's url2pkg; weNeil Blakey-Milner2001-02-021-1/+7
| | | | | | | | | | now autogenerate MASTER_SITES if we're given an URL. Also check the PKGMAINTAINER environment variable. Submitted by: Tomasz Luchowski <zuntum@eik.pl> Notes: svn path=/head/; revision=37909
* As a quick fix, use /tmp instead of the currently hardcoded /usr/tmp.Neil Blakey-Milner2001-01-032-2/+2
| | | | Notes: svn path=/head/; revision=36636
* Add (a currently very bare) mkpbuild, and (the more useful) mkpinstall.Neil Blakey-Milner2001-01-022-0/+136
| | | | | | | | | | | | | | | | | | | | | mkpbuild just builds a port with WRKDIRPREFIX and PREFIX set to a directory in /tmp, and with the owner and group variables set to the user. A placeholder - in future, it'll have build error/log parsing. mkpinstall's claim to fame is to do the same, except with "make install" instead of "make build", and it then parses the mtree file, and compares that and the current directory tree and the files, and auto-generates a plist. They're not pretty, but they finish the mkptools set basic functionality: automatic skeleton generation with mkpskel, on-extraction requirements guessing, and plist generation. Future direction might be parsing build and install failures, checking for '/usr/local' abuse, more requirements guessing, and stuff like that. Notes: svn path=/head/; revision=36610
* Add the first efforts on my mkptools, the successor to makeport.pl.Neil Blakey-Milner2000-10-144-0/+613
mkptools are broken up into simple scripts: mkpskel takes a distribution file as an argument and generates a skeleton; it guesses the extract method, the package name, and so forth, and generates populated Makefile and distinfo and empty pkg-descr, pkg-comment, and pkg-plist. mkpextr goes through the extract phase, and generates what it believes are the necessary variables necessary to build the port. It guesses the work source directory, what the Makefile is called, whether it has configure, whether to use libtool, and other bits such as wildly guessing kde, qt, gtk, gnome, and ssl requirements. Run it in a port directory, and it generates Makefile.extr. mkpmerge merges the results from mkpskel and mkpextr (and will later merge the results from the other phases) into Makefile. mkpclean cleans up any extra files that may be hanging about. Notes: svn path=/head/; revision=33807