aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/create
Commit message (Collapse)AuthorAgeFilesLines
* After around 20 years of duty it is time for pkg_install to retireBaptiste Daroussin2013-10-316-1898/+0
| | | | Notes: svn path=/head/; revision=257444
* sysconf(3) returns a long, not an int.David E. O'Brien2013-06-291-1/+2
| | | | Notes: svn path=/head/; revision=252363
* Provide an option to users to shoot themselves in the foot.Eitan Adler2012-11-261-1/+5
| | | | | | | | | Reviewed by: bapt Approved by: cperciva MFC after: 1 month Notes: svn path=/head/; revision=243554
* Warn users when using pkg tools if it looks like theyEitan Adler2012-10-221-0/+1
| | | | | | | | | | | | be be pkgng users. Reviewed by: bapt (earlier version) Reviewed by: kwm Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=241830
* if a file in plist starts with / then do not prefix it with "prefix" [1]Baptiste Daroussin2012-09-181-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | pkg info -g returns 1 if a file mismatch [2] flush stdout in pkg info -g [3] clean up quiet mode (-q | --quiet) output of pkg_version(1) [4] fix missing error call in uname check added to pkg_version(1) [5] fix pkg_add(1) fails to install with -C from bad path [6] only resolve path from pkg_add(1) -p if the given prefix do not start with a '/' [7] PR: bin/13128 [1] bin/139015 [2] bin/113702 [3] bin/142570 [4] bin/146857 [5] bin/157543 [6] Submitted by: cy [1] Anton Yuzhaninov <citrin@citrin.ru> [2] Ighighi <ighighi@gmail.com> [3] "N.J. Mann" <njm@njm.me.uk> [4] gcooper [5] David Naylor <naylor.b.david@gmail.com> [6] netchild [7] MFC after: 2 weeks Notes: svn path=/head/; revision=240682
* Fix r231300: Use correct test so we only bail out on error instead of on ↵Eitan Adler2012-02-101-1/+1
| | | | | | | | | | | | | non-error. Also, fix a style bug. Submitted by: ache Approved by: cperciva MFC after: 1 month Notes: svn path=/head/; revision=231328
* Permit the use of relative paths for the prefix argument.Eitan Adler2012-02-091-3/+9
| | | | | | | | | | | | Remove an unnecessary cwd from created plists when -p is specified PR: bin/145000 Submitted by: gcooper Approved by: portmgr (flo) MFC after: 1 month Notes: svn path=/head/; revision=231300
* Spelling fixes for usr.sbin/Ulrich Spörlein2011-12-305-5/+5
| | | | Notes: svn path=/head/; revision=228990
* Backout libinstall.a -> libpkg commit.Florent Thoumie2011-05-174-7/+7
| | | | | | | Discussed with: erwin, brooks, bapt Notes: svn path=/head/; revision=222035
* - Add support for xz compression to pkg_create, bzip2 remains the defaultFlorent Thoumie2010-10-124-4/+32
| | | | | | | | | | | compression algorithm. - Bump PKG_INSTALL_VERSION to 20101012. Submitted by: mm MFC after: 1 month Notes: svn path=/head/; revision=213718
* - Take libinstall.a out of pkg_install and make it a proper shared library.Florent Thoumie2010-04-234-7/+7
| | | | | | | | | | | | | | - Rework the wrapper support to check libpkg version as well as pkg_install version. - Add libfetch to _prebuild_libs. - There are no new features introduced. Notes: the API is not stable, so basically, do not use libpkg in your projects for now. Also there's no manpage for libpkg yet, because the API will change drastically. I repeat, do not use libpkg for now. Notes: svn path=/head/; revision=207113
* Add missing `void' keywords.Ed Schouten2009-12-291-1/+1
| | | | Notes: svn path=/head/; revision=201226
* When running pkg_add -r, check & install our dependencies for eachBrian Somers2009-06-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | package rather than expecting our top level package to get all of the dependencies correct. Previously, the code depended on the top level package having all of the pkgdep lines in +CONTENTS correct and in the right order, but that doesn't always happen due to code such as this (in security/gnutls/Makefile): .if (defined(WITH_LZO) || exists(${LOCALBASE}/lib/liblzo2.so)) && !defined(WITHOUT_LZO) LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 .... With such conditional dependencies, my 'sophox-packages' package won't install. The dependency tree looks like this: sophox-packages ... x11/gnome2 x11/gnome-applets net/libgweather devel/libsoup security/gnutls security/libgcrypt security/libgpg-error ... x11/gnome2 archivers/file-roller archivers/gtar archivers/lzop archivers/lzo2 ... gnutls doesn't depend on lzo2 initially, but lzo2 is dragged into the mix via other dependencies and is built by the initial 'make'. The subsequent package generation for gnutls adds a pkgdep line for lzo2 to gnutls' +CONTENTS but the pkgdeps in sophox-packages' +CONTENTS has gnutls *before* lzo2. As a result, sophox-packages cannot install; gnutls fails because lzo2 is missing, 82 more packages fail because gnutls is missing and the whole thing spirals into a super-confusing mess! MFC after: 3 weeks Notes: svn path=/head/; revision=194497
* Enable the -n option of pkg_create(1).Giorgos Keramidas2008-07-081-0/+4
| | | | | | | | | | | | The changes to make the option work are already in place, but I missed the patch hunk that adds it to the getopt() option-handling loop. Pointy hat: keramida Approved by: flz MFC after: 1 week Notes: svn path=/head/; revision=180361
* Remove support for RELENG_4 (__FreeBSD_version < 500039).Florent Thoumie2008-06-161-4/+0
| | | | | | | MFC after: 1 day Notes: svn path=/head/; revision=179835
* - Add long options to pkg_install.Florent Thoumie2008-05-302-20/+39
| | | | | | | | - Remove check for '-?' as it's not listed in authorized options. - Bump PKG_INSTALL_VERSION to 20080530. Notes: svn path=/head/; revision=179433
* Update usage strings to add a missing -n option.Giorgos Keramidas2008-05-271-1/+1
| | | | | | | Noticed by: Matthias Apitz, matthias.apitz at oclc.org Notes: svn path=/head/; revision=179366
* Add a -n option to pkg_create(1), to inhibit duplicate work.Giorgos Keramidas2008-05-274-5/+42
| | | | | | | | | | | | | | | | | | | | | | | When run without this option, multiple runs of `pkg_create -Rb' will recreate common packages multiple times. This can take a lot of time for large packages. With the -n option `pkg_create -b' checks with stat(2) and skips packages that already exist. Note that this may *not* be safe of the existing output file is not really a package, or if it has been corrupted, modified or otherwise tinkered with between subsequent pkg_create runs. For this and POLA reasons, the default behavior is to *rebuild* the packages, and the -n option can be used when we know it is `safe' to run in no-regenerate mode. Inspired by: A post to freebsd-questions by Matthias Apitz &lt; matthias.apitz at oclc.org &gt; Reviewed by: marcus, flz Approved by: marcus MFC after: 2 weeks Notes: svn path=/head/; revision=179352
* Backout previous commit, since it's done without maintainersKirill Ponomarev2007-12-091-1/+0
| | | | | | | | | | approval. These changes were approved by adding it as port to ports/ tree, but not for src/. I talked to PR submitter and miwi@ some days ago and explained the reasons for it, the both were agree to add it to ports/ only. Notes: svn path=/head/; revision=174475
* Add the 'pkg_search' script.David E. O'Brien2007-12-091-0/+1
| | | | | | | | | This makes it easier to figure what packages you want to install. Submitted by: Matthias Schmidt <schmidtm @ mathematik . uni-marburg . de> Notes: svn path=/head/; revision=174472
* Cleanup of userland __P useKevin Lo2007-11-071-1/+1
| | | | Notes: svn path=/head/; revision=173412
* Fix usage().Ruslan Ermilov2006-09-291-6/+6
| | | | Notes: svn path=/head/; revision=162803
* Allow variable amounts of verbosity.David E. O'Brien2006-06-121-1/+1
| | | | Notes: svn path=/head/; revision=159554
* Use bzip2(1) by default to compress package tarball onKirill Ponomarev2006-04-171-1/+6
| | | | | | | | | | __FreeBSD_version >= 500039. Submitted by: Alex Lyashkov <umka@sevcity.net> MFC after: 5 days Notes: svn path=/head/; revision=157808
* When using @cwd %%FOO%%, we must ensure to return in the originalKirill Ponomarev2006-01-073-4/+22
| | | | | | | | | | | | | | | | | | prefix later, but doing so with @cwd %%OLDPREFIX%% (having PLIST_SUB+="OLDPREFIX=${PREFIX}") hardcodes the value in the packing list. That's not really a problem when dealing with ports but that's a problem with packages since pkg_add -p option only overrides the first @cwd occurrence. This patch allow us to use @cwd without any argument. If no directory argument is given, it will set current working directory to the first prefix given by the @cwd command. PR: bin/77212 Submitted by: flz Notes: svn path=/head/; revision=154102
* Introduce 3 new options for pkg_create(1), -x for using basicKirill Ponomarev2005-11-084-7/+61
| | | | | | | | | | | regular expressions for pkg-name, -E for extended regexps and -G for exact matching. Submitted by: mux MFC after: 3 days Notes: svn path=/head/; revision=152210
* remove a few uses of the word `really'John-Mark Gurney2005-06-271-2/+1
| | | | | | | | | Reviewed by: hrs Approved by: re (scottl) MFC after: 1 week Notes: svn path=/head/; revision=147632
* Fix last commit.Ruslan Ermilov2005-06-221-2/+3
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=147527
* Implement @noinst field which has at the moment the same meaning andKirill Ponomarev2005-06-141-0/+10
| | | | | | | | | | | function as @comment has. But will be valid only for files and not for md5 sums, rcsid's and comments in the future. Submitted by: flz Approved by: re@ (scottl) Notes: svn path=/head/; revision=147381
* Markup fixes.Ruslan Ermilov2005-06-141-1/+1
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=147377
* Add -R modifier for the mode when pkg_create(8) creates package fileMaxim Sobolev2005-06-064-9/+70
| | | | | | | | | | | from the locally installed package. When this modifier is specified pkg_create(8) will also create package files for all packages on which that locally installed package depends. MFC after: 5 days Notes: svn path=/head/; revision=147043
* Expand contractions.Ruslan Ermilov2005-02-131-3/+3
| | | | Notes: svn path=/head/; revision=141851
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Don't put DEBUG to CFLAGS, we have the standard DEBUG_FLAGS for this.Ruslan Ermilov2004-08-121-1/+1
| | | | Notes: svn path=/head/; revision=133596
* Downgrade WARNS level to more tolerable value. Attempt to fixAlexander Kabaev2004-07-282-8/+10
| | | | | | | casts as lvalue usage whenever possible. Notes: svn path=/head/; revision=132789
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-40/+80
| | | | Notes: svn path=/head/; revision=131500
* - pkg_add spawns itself as argv[0] when installing dependent packages, toOliver Eikemeier2004-06-293-5/+5
| | | | | | | | | | | | | | | | | | | | | enable the use as a port on older systems - use absolute paths in all calls to external programs, to account for strange PATH settings - use INDEX or INDEX-5 depending on FreeBSD version, to enable the use on FreeBSD 4.x as a port. - conditionalize all 4.x/5.x differences on __FreeBSD_version, so that the pkg_install tools can be kept in sync on 4.x and 5.x - Bump PKG_INSTALL_VERSION Reviewed by: portmgr (bento run) MFC after: 4 weeks Notes: svn path=/head/; revision=131285
* - pkg_create: new flag -S (clean room installation)Oliver Eikemeier2004-06-295-33/+74
| | | | | | | | | - pkg_create: checksum meta files too PR: 66032 Notes: svn path=/head/; revision=131277
* - Properly build both crypto and non-crypto versions of theRuslan Ermilov2004-01-171-5/+0
| | | | | | | | | | package management tools. - Drop redundant dependency of pkg_create(1) and pkg_delete(1) on crypto libraries now that they do not link with libfetch. Notes: svn path=/head/; revision=124633
* Correct truncation detection after use of snprintf: The case whereJacques Vidrine2003-12-171-2/+2
| | | | | | | exactly one character was truncated was not detected. Notes: svn path=/head/; revision=123602
* Clarify the order of arguments passed to the pre-/post-install scriptPeter Pentchev2003-08-261-1/+1
| | | | | | | | | | | in the description of the pkg_create -i command-line option. PR: 55477 Submitted by: Eric van Gyzen <vangyzen@stat.duke.edu> MFC after: 5 weeks Notes: svn path=/head/; revision=119490
* Retire the useless NOSECURE knob.Dag-Erling Smørgrav2003-05-191-1/+1
| | | | | | | Approved by: re (scottl) Notes: svn path=/head/; revision=115157
* * Add explicit conflict-checking to the package tools. Packages canKris Kennaway2003-04-174-6/+41
| | | | | | | | | | | | | | | | | | register a list of other packages with which they conflict (via the -C option to pkg_create), and they will refuse to install (unless -f is specified) if one of the listed packages is already present. * Update documentation for the new feature as well as fleshing out some existing documentation. * Bump PKG_INSTALL_VERSION so this feature can be tested for. Submitted by: Sergey Matveychuk <sem@ciam.ru> PR: bin/47145 MFC after: 2 weeks Notes: svn path=/head/; revision=113594
* english(4) police.Jens Schweikhardt2002-12-271-3/+3
| | | | Notes: svn path=/head/; revision=108317
* Break fileGetURL() out into its own file so that pkg_install/lib consumersDavid E. O'Brien2002-11-061-2/+2
| | | | | | | pkg_{create,delete} don't need to needlessly link with libfetch. Notes: svn path=/head/; revision=106491
* Reorg just a tad to better express our bzip intentions.David E. O'Brien2002-08-251-6/+6
| | | | Notes: svn path=/head/; revision=102384
* Drop support for the .tbz2 suffix. One would not want pkg_create(1)Akinori MUSHA2002-08-042-6/+2
| | | | | | | | | to create "pkgname.tbz" when one specifies "pkgname.tbz2". MFC after: 1 week Notes: svn path=/head/; revision=101338
* Use an 8.3 friendly extension when compressing with bzip2.David E. O'Brien2002-08-041-1/+1
| | | | Notes: svn path=/head/; revision=101302
* Reorder libraries to fix static linking (libssl depends on libcrypto, soDag-Erling Smørgrav2002-06-121-2/+2
| | | | | | | | | it must come before libcrypto in LDADD) Reviewed by: bde Notes: svn path=/head/; revision=98143
* libfetch now depends on libcrypto and libssl.Ruslan Ermilov2002-06-061-0/+5
| | | | Notes: svn path=/head/; revision=97930