2012-01-30 13:39:14 +01:00
|
|
|
# New ports collection makefile for: pkg
|
|
|
|
# Date created: 2012-01-18
|
|
|
|
# Whom: Baptiste Daroussin <bapt@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pkg
|
2012-08-30 16:19:30 +02:00
|
|
|
DISTVERSION= 1.0
|
2012-01-30 13:39:14 +01:00
|
|
|
CATEGORIES= ports-mgmt
|
2012-02-10 16:55:56 +01:00
|
|
|
MASTER_SITES= LOCAL/portmgr \
|
|
|
|
http://files.etoilebsd.net/pkg/
|
2012-01-30 13:39:14 +01:00
|
|
|
|
|
|
|
MAINTAINER= portmgr@FreeBSD.org
|
|
|
|
COMMENT= New generation package manager
|
|
|
|
|
|
|
|
LICENSE= BSD
|
|
|
|
|
- update to 1.0-beta9
- changes:
* query -f has been replaced by query -F when querying a package (file) for consistency with pkg info
* fix autoremove recursion
* pkg set -o oldorigin:neworigin allow the user to modify the origin of a packages (useful for MOVED)
* several fixes on powerpc
* pkg query evaluation expression now accept !=
* pkg2ng is now able to migrate a local database without needed the ports tree
* speed up pkg check by only loading the informations needed for the operation it will do
* code cleanup in the library
* fix uname/gname lookup when creating packages
* new periodic script for pkg audit
* new keyword shlib, pkgng is able to load information about the needed shlibs for a package (disable by default)
* pkg info act as pkg info -a by default
* new install timestamp in the package database, available using pkg query "%t"
* pkg updating can now take a port name as argument to only show related UPDATING informations)
* -q (quiet) for install, delete, upgrade, update and autoremove
* new ABI detection string
Concerning the new ABI, to be able to determine which package can be installed on which destination, pkgng couldn't rely on the simple:
os version/machine, because some arches have incompatible ABIs. Can compute on its own the ABI, the string is the followin:
OSNAME:OSMAJORVERSION:OSARCH:OSCLASS(:...)
... means the arch specific extensions.
which means on:
* amd64: freebsd:9:x86:64
* i386: freebsd:9:x86
* arm: freebsd:9:arm:eb:oabi:softvp
etc
Be careful all the packages (.txz) files have to be rebuilt!!!
When binary upgradeing from pkg beta8, on amd64 do the following:
UNAME_m=freebsd:9:x86:64 pkg install -f pkg
on i386
UNAME_m=freebsd:9:x86:32 pkg install -f pkg
Bonus when run on a chroot/jail where ABI is different from the host, pkgng will dynamically determine the destination ABI.
Feature safe: yes
2012-03-30 09:34:00 +02:00
|
|
|
USE_XZ= yes
|
2012-01-30 13:39:14 +01:00
|
|
|
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
MANCOMPRESSED= yes
|
|
|
|
|
|
|
|
MAKE_ENV+= WITHOUT_PROFILE=yes
|
2012-06-25 15:23:38 +02:00
|
|
|
USE_STAGE= yes
|
2012-01-30 13:39:14 +01:00
|
|
|
|
2012-02-22 18:51:26 +01:00
|
|
|
MAN8= pkg.8 \
|
|
|
|
pkg-add.8 \
|
|
|
|
pkg-autoremove.8 \
|
2012-04-13 22:54:59 +02:00
|
|
|
pkg-audit.8 \
|
2012-02-22 18:51:26 +01:00
|
|
|
pkg-backup.8 \
|
2012-04-13 22:54:59 +02:00
|
|
|
pkg-check.8 \
|
2012-04-23 15:57:39 +02:00
|
|
|
pkg-clean.8 \
|
2012-02-22 18:51:26 +01:00
|
|
|
pkg-create.8 \
|
|
|
|
pkg-delete.8 \
|
2012-04-13 22:54:59 +02:00
|
|
|
pkg-fetch.8 \
|
2012-02-22 18:51:26 +01:00
|
|
|
pkg-info.8 \
|
|
|
|
pkg-install.8 \
|
|
|
|
pkg-query.8 \
|
|
|
|
pkg-register.8 \
|
|
|
|
pkg-repo.8 \
|
2012-04-23 15:57:39 +02:00
|
|
|
pkg-rquery.8 \
|
2012-02-22 18:51:26 +01:00
|
|
|
pkg-search.8 \
|
2012-03-03 00:08:42 +01:00
|
|
|
pkg-set.8 \
|
2012-04-23 15:57:39 +02:00
|
|
|
pkg-shell.8 \
|
2012-03-30 15:33:19 +02:00
|
|
|
pkg-shlib.8 \
|
2012-06-25 15:23:38 +02:00
|
|
|
pkg-stats.8 \
|
2012-02-22 18:51:26 +01:00
|
|
|
pkg-update.8 \
|
|
|
|
pkg-updating.8 \
|
|
|
|
pkg-upgrade.8 \
|
|
|
|
pkg-version.8 \
|
|
|
|
pkg-which.8
|
2012-01-30 13:39:14 +01:00
|
|
|
MAN5= pkg.conf.5
|
2012-06-25 15:23:38 +02:00
|
|
|
MLINKS= pkg-delete.8 pkg-remove.8 \
|
|
|
|
pkg.8 pkg-static.8
|
2012-01-30 13:39:14 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-02-22 18:51:26 +01:00
|
|
|
#define PKG_DEPENDS to nothing to avoid infinite loop looking for pkg :)
|
|
|
|
.if defined(WITH_PKGNG)
|
|
|
|
PKG_DEPENDS=
|
|
|
|
.undef INSTALLS_DEPENDS
|
|
|
|
.if !exists(${LOCALBASE}/sbin/pkg)
|
|
|
|
PKG_BIN= ${WRKSRC}/pkg-static/pkg-static
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2012-02-15 21:37:06 +01:00
|
|
|
.if ${OSVERSION} < 800505
|
|
|
|
IGNORE= not supported on 7.x or early 8.0
|
2012-01-30 13:39:14 +01:00
|
|
|
.endif
|
|
|
|
|
2012-02-22 18:51:26 +01:00
|
|
|
post-install:
|
- update to 1.0-beta9
- changes:
* query -f has been replaced by query -F when querying a package (file) for consistency with pkg info
* fix autoremove recursion
* pkg set -o oldorigin:neworigin allow the user to modify the origin of a packages (useful for MOVED)
* several fixes on powerpc
* pkg query evaluation expression now accept !=
* pkg2ng is now able to migrate a local database without needed the ports tree
* speed up pkg check by only loading the informations needed for the operation it will do
* code cleanup in the library
* fix uname/gname lookup when creating packages
* new periodic script for pkg audit
* new keyword shlib, pkgng is able to load information about the needed shlibs for a package (disable by default)
* pkg info act as pkg info -a by default
* new install timestamp in the package database, available using pkg query "%t"
* pkg updating can now take a port name as argument to only show related UPDATING informations)
* -q (quiet) for install, delete, upgrade, update and autoremove
* new ABI detection string
Concerning the new ABI, to be able to determine which package can be installed on which destination, pkgng couldn't rely on the simple:
os version/machine, because some arches have incompatible ABIs. Can compute on its own the ABI, the string is the followin:
OSNAME:OSMAJORVERSION:OSARCH:OSCLASS(:...)
... means the arch specific extensions.
which means on:
* amd64: freebsd:9:x86:64
* i386: freebsd:9:x86
* arm: freebsd:9:arm:eb:oabi:softvp
etc
Be careful all the packages (.txz) files have to be rebuilt!!!
When binary upgradeing from pkg beta8, on amd64 do the following:
UNAME_m=freebsd:9:x86:64 pkg install -f pkg
on i386
UNAME_m=freebsd:9:x86:32 pkg install -f pkg
Bonus when run on a chroot/jail where ABI is different from the host, pkgng will dynamically determine the destination ABI.
Feature safe: yes
2012-03-30 09:34:00 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/scripts/periodic/410.pkg-audit
|
|
|
|
@${MKDIR} ${PREFIX}/etc/periodic/security
|
2012-06-25 15:23:38 +02:00
|
|
|
@${MKDIR} ${PREFIX}/etc/periodic/daily
|
- update to 1.0-beta9
- changes:
* query -f has been replaced by query -F when querying a package (file) for consistency with pkg info
* fix autoremove recursion
* pkg set -o oldorigin:neworigin allow the user to modify the origin of a packages (useful for MOVED)
* several fixes on powerpc
* pkg query evaluation expression now accept !=
* pkg2ng is now able to migrate a local database without needed the ports tree
* speed up pkg check by only loading the informations needed for the operation it will do
* code cleanup in the library
* fix uname/gname lookup when creating packages
* new periodic script for pkg audit
* new keyword shlib, pkgng is able to load information about the needed shlibs for a package (disable by default)
* pkg info act as pkg info -a by default
* new install timestamp in the package database, available using pkg query "%t"
* pkg updating can now take a port name as argument to only show related UPDATING informations)
* -q (quiet) for install, delete, upgrade, update and autoremove
* new ABI detection string
Concerning the new ABI, to be able to determine which package can be installed on which destination, pkgng couldn't rely on the simple:
os version/machine, because some arches have incompatible ABIs. Can compute on its own the ABI, the string is the followin:
OSNAME:OSMAJORVERSION:OSARCH:OSCLASS(:...)
... means the arch specific extensions.
which means on:
* amd64: freebsd:9:x86:64
* i386: freebsd:9:x86
* arm: freebsd:9:arm:eb:oabi:softvp
etc
Be careful all the packages (.txz) files have to be rebuilt!!!
When binary upgradeing from pkg beta8, on amd64 do the following:
UNAME_m=freebsd:9:x86:64 pkg install -f pkg
on i386
UNAME_m=freebsd:9:x86:32 pkg install -f pkg
Bonus when run on a chroot/jail where ABI is different from the host, pkgng will dynamically determine the destination ABI.
Feature safe: yes
2012-03-30 09:34:00 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/scripts/periodic/410.pkg-audit ${PREFIX}/etc/periodic/security
|
2012-06-25 15:23:38 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/scripts/periodic/411.pkg-backup ${PREFIX}/etc/periodic/daily
|
2012-02-22 18:51:26 +01:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/ports/pkg2ng ${PREFIX}/sbin
|
2012-04-23 15:57:39 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/pkg/pkg.conf.sample ${PREFIX}/etc
|
2012-03-03 00:08:42 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2012-02-22 18:51:26 +01:00
|
|
|
|
2012-01-30 13:39:14 +01:00
|
|
|
.include <bsd.port.post.mk>
|