summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Check if pkgdir exists in create_packageDag Odenhall2007-05-30
| | | | | | Signed-off-by: Dag Odenhall <dag.odenhall@gmail.com> Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: fix double occurance of word in asroot warningDag Odenhall2007-05-30
| | | | | | Signed-off-by: Dag Odenhall <dag.odenhall@gmail.com> Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* Use @sysconfdir@ in etc/ configuration filesDan McGee2007-05-30
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* doc/makepkg.8: document --log optionDan McGee2007-05-30
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: add srcdir and pkgdir variablesDan McGee2007-05-30
| | | | | | | We already have $startdir, so this introduces two more shorthand variables for the most commonly accessed directories. Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: add source package creation optionDan McGee2007-05-30
| | | | | | Add a new --source flag that allows creation of a source-only package. Signed-off-by: Dan McGee <dan@archlinux.org>
* Finish making autoconf changesDan McGee2007-05-30
| | | | | | | | | | Fix up everything in the etc/ directory so it is built at make-time and not configure-time. This reduces configure generated files to just the makefiles, which is the correct way to do things. This also allows a switch from @@REPO@@ to the more sane @REPO@ in mirrorlist.in, and kills the two-part generation of the mirror files. Signed-off-by: Dan McGee <dan@archlinux.org>
* scripts: do autoconf path replacement rightDan McGee2007-05-30
| | | | | | | | | | This should finally get the path replacement in our scripts right. This is the way the autoconf package itself does it and should not need much further tweaking. Threw in a few trailing whitespace corrections from the scripts as well. Signed-off-by: Dan McGee <dan@archlinux.org>
* Modernize and update configure.acDan McGee2007-05-30
| | | | | | | | Using the autoscan tool, ensure we are doing the checks we should be doing in configure.ac. There is still more work to do, but this is a start at cleaning up the file a bit to make it much easier to change in the future. Signed-off-by: Dan McGee <dan@archlinux.org>
* Substitute config directory in scripts.Andrew Fyfe2007-05-29
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Update POTFILES.in for new source file layout on pacman sideDan McGee2007-05-29
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Set paths in pacman-optimize to use configure-time pathsDan McGee2007-05-29
| | | | | | | | | | | | By setting up a few more AC_SUBST macros in configure.ac, we can fill in paths in the scripts on the fly instead of having them in multiple places. Other small fixes: * Fix an oops on my last commit where I had some lines stil commented. * Fix makepkg bug where the generated package name using PKGEXT had two periods (..). Signed-off-by: Dan McGee <dan@archlinux.org>
* Get --help and --version options working on all scriptsDan McGee2007-05-29
| | | | | | | | | Added the autoconf option std-options to the scripts/ directory, which checks to ensure all programs have both --help and --version options. A few things needed cleaning up to get this working. To test these types of options, use the 'make distcheck' target. Signed-off-by: Dan McGee <dan@archlinux.org>
* Add -mtune=generic to C{,XX}FLAGS in makepkg.confAndrew Fyfe2007-05-28
| | | | | | | | GCC-4.2.0 requires -mtune=generic to produce binaries optimized for generic i686/x86_64. By default it tries to optimize a for the host system building the package. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Switch to printf for output messages.Andrew Fyfe2007-05-28
| | | | | | Using printf we can avoid haveing to use eval_gettext and the ugly escape sequances required to use it. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Add autotool-generated scripts to .gitignoreDan McGee2007-05-27
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove extra_dist from scripts/Makefile.amAndrew Fyfe2007-05-27
| | | | | | This is automaticly done by autoconf. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Fixed typo in scripts/repo-remove.inAndrew Fyfe2007-05-27
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* chmod -x scripts/*.inAndrew Fyfe2007-05-27
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* autotool scripts/updatesyncAndrew Fyfe2007-05-27
| | | | | | | | - move scripts/updatesync -> scripts/updatesync.in - add -V --version options to scripts/updatesync.in - add autotool commands to generate scripts/updatesync Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* autotool scripts/repo-removeAndrew Fyfe2007-05-27
| | | | | | | | - move scripts/repo-remove -> scripts/repo-remove.in - add -V --version options to scripts/repo-remove.in - add autotool commands to generate scripts/repo-remove Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Added copyright header to scripts/abs.inAndrew Fyfe2007-05-27
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* autotool scripts/repo-addAndrew Fyfe2007-05-27
| | | | | | | | - move scripts/repo-add -> scripts/repo-add.in - add -V --version options to scripts/repo-add.in - add autotool commands to generate scripts/repo-add Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* move parameter count check after check for help and version.Andrew Fyfe2007-05-27
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* autotool scripts/pacman-optimizeAndrew Fyfe2007-05-27
| | | | | | | | - move scripts/pacman-optimize -> scripts/pacman-optimize.in - add -V --version options to scripts/pacman-optimize.in - add autotool commands to generate scripts/pacman-optimize Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* autotool scripts/makeworldAndrew Fyfe2007-05-27
| | | | | | | | - move scripts/makeworld to scripts/makeworld.in - add -V --version options to scripts/makeworld.in - add autotool commands to generate scripts/makeworld Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* autotool scripts/gensyncAndrew Fyfe2007-05-27
| | | | | | | | - move scripts/gensync -> scripts/gensync.in - add -V --version options to scripts/gensync.in - add autotool commands to generate scripts/gensync Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* autotool scripts/absAndrew Fyfe2007-05-27
| | | | | | | | - move scripts/abs -> scripts/abs.in - add -V --version options to scripts/abs.in - add autotool commands to generate scripts/abs Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* fix existing autotools in scripts/*Andrew Fyfe2007-05-27
| | | | | | | - Remove scripts/makepkg on 'make distclean' - scripts/makepkg.in: set myver on ./configure Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* makepkg: fakeroot-related changes and other misc outputDan McGee2007-05-27
| | | | | | | A few changes to undo my stupid mistake earlier wrt fakeroot checking, and unify the output and usage of 'makepkg.conf'. Signed-off-by: Dan McGee <dan@archlinux.org>
* Removed fakeroot hacks.Andrew Fyfe2007-05-27
| | | | | | | | | Removed fakeroot hacks from * handledeps() * removedeps() * installpackage() Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Reduced the number of commands run inside fakeroot to the bare minimum.Andrew Fyfe2007-05-27
| | | | | | | | | | | | | | | Only the following functions now run inside fakeroot * run_build() * tidy_install() * create_package() Added check for inproper use of '-F' option. Added warning if makepkg is run as root. Added a new '--asroot' flag that must be passed if you wish to run makepkg as the root user. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* Add missing new line to 'pacman -T' output.Andrew Fyfe2007-05-24
| | | | | | | | | | 'pacman -T foo bar' returns 'foobar' instead of: foo bar Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>o Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Add -Qee option for the original behavior of -QeChantry Xavier2007-05-20
| | | | | | | | | | | -Qee now lists "orphans" the way pacman used to - that is, -Qe lists packages required by nothing that were installed as a dependency, but -Qee lists all packages not required by something else. Also, I snuck in a compile fix for my real_path cleanup earlier, heh Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Allow $repo expansion in 'Server' config linesAaron Griffin2007-05-18
| | | | | | | | | | | | | Small change (addition of a 'strreplace' function) which replaces any $repo tokens found in a server line with the name of the repo or section being processed. While this is more simplistic than suggestions on flyspray, it works and I think it is cleaner. Merits can be discussed further. Ref: FS#6389 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Fix extraneous "ignoring upgrade" output on Ignore'd packagesChantry Xavier2007-05-18
| | | | | | | | Reorder package version checking so there is no output when a package is listed in IgnorePkg. Closes FS#7111 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Fix broken resolve_path functionAaron Griffin2007-05-18
| | | | | | | Removed some unneeded path munging so that our relative paths resolve properly. This closes FS#7068 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Continue scanning when an invalid DB entry is foundAaron Griffin2007-05-18
| | | | | | | | Fix for FS#7133 - when DB scanning finds an invalid named entry, scanning is currently aborted. Instead we will simply skip it and find the next valid package. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Remove trailing slashes from Server URLsAaron Griffin2007-05-18
| | | | | | | Simple clean up for the rest of the code, which also prevents a little libdownload bug relating to '//' appearing in URLs. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Fix libarchive permission extractionAaron Griffin2007-05-18
| | | | | | | | Hackish fix to ensure libarchive extracts files and dirs with the right permissions. For some reason extracting /tmp on install wasn't handled properly by librachive, so an explicit chmod will fix this. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* makepkg: ensure DISTCC_HOSTS variable is exported when requiredDan McGee2007-05-16
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: a few small changesDan McGee2007-05-14
| | | | | | | | | | * change "Tidying Install" message to msg instead of msg2 * Fix quoting issues in usage output * Remove LANG and friends unsetting- this should be done in the offending package builds * Check for defined $BUILDSCRIPT, since it was moved to makepkg.conf Signed-off-by: Dan McGee <dan@archlinux.org>
* Cleaned up and simplified run_build().Andrew Fyfe2007-05-14
| | | | | | Restore LC_ALL and LANG after running build(). Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Moved commands to setup build environment and run build() into run_build().Andrew Fyfe2007-05-14
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Cleaned up and simplified tidy_install().Andrew Fyfe2007-05-14
| | | | | | | Added 'LC_ALL= LANG=' to find commands for stripping symbols from binaries/libraries. This stops the greps failing if LC_ALL or LANG != en_US|C|POSIX. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Moved commands to tidy up package install into tidy_install().Andrew Fyfe2007-05-14
| | | | | | | | | | | | The following sets of commands were moved into tidy_install() * Remove info/doc files. * Move usr/share/man to usr/man * Compress man pages. * Strip debug symbols from binaries/libraries. * Remove libtool *.la files. * Remove empty directories. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Cleaned up and simplified create_package().Andrew Fyfe2007-05-14
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Moved commands to create package file into create_package().Andrew Fyfe2007-05-14
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Add three new 'requiredby' pactestsDan McGee2007-05-14
| | | | | | | These should test various aspects of the DB when dealing with requiredby entries. At least one fails without Nagy's alpm_depcmp patch. Signed-off-by: Dan McGee <dan@archlinux.org>
* Use alpm_depcmp in _alpm_pkg_update_requiredbyNagy Gabor2007-05-14
| | | | | | | The old function did too much on its own; let alpm_depcmp do the hard work. This will allow for future versioned provisions if necessary. Signed-off-by: Dan McGee <dan@archlinux.org>