2012-06-19 19:21:13 +02:00
|
|
|
.include <bsd.own.mk>
|
2010-07-20 19:09:44 +02:00
|
|
|
# Makefile - installed as /usr/Makefile
|
|
|
|
#
|
|
|
|
# Provides simple targets to download and maintain /usr/pkgsrc etc.
|
|
|
|
|
|
|
|
help all:
|
|
|
|
@echo "HELP:"
|
|
|
|
@echo ""
|
|
|
|
.if exists(${.CURDIR}/pkgsrc/.git)
|
|
|
|
.if exists(${.CURDIR}/pkgsrc/Makefile)
|
|
|
|
@echo " make pkgsrc-update - update your pkgsrc repo from the net"
|
|
|
|
.else
|
|
|
|
@echo " make pkgsrc-checkout - initial checkout of your pre-packaged"
|
|
|
|
@echo " pkgsrc repo."
|
|
|
|
@echo " make pkgsrc-update - update your pkgsrc repo from the net"
|
|
|
|
@echo " after the initial checkout."
|
|
|
|
.endif
|
|
|
|
.else
|
|
|
|
@echo " make pkgsrc-create - fetch initial pkgsrc repo from the net"
|
|
|
|
@echo " make pkgsrc-update - update your pkgsrc repo from the net"
|
|
|
|
.endif
|
|
|
|
@echo ""
|
|
|
|
|
2011-01-31 01:58:50 +01:00
|
|
|
pkgsrc-create: git
|
2010-07-20 19:09:44 +02:00
|
|
|
@echo "If problems occur you may have to rm -rf pkgsrc and try again."
|
|
|
|
@echo ""
|
2012-05-07 16:28:01 +02:00
|
|
|
${INSTALL_DIR} ${.CURDIR}/pkgsrc
|
2010-07-20 19:09:44 +02:00
|
|
|
cd ${.CURDIR}/pkgsrc && git init
|
|
|
|
cd ${.CURDIR}/pkgsrc && \
|
2010-11-23 12:12:06 +01:00
|
|
|
git remote add origin git://git.minix3.org/pkgsrc.git
|
2010-07-20 19:09:44 +02:00
|
|
|
cd ${.CURDIR}/pkgsrc && git fetch origin
|
2010-11-23 12:12:06 +01:00
|
|
|
cd ${.CURDIR}/pkgsrc && git branch minix-master origin/minix-master
|
|
|
|
cd ${.CURDIR}/pkgsrc && git checkout minix-master
|
2010-07-20 19:09:44 +02:00
|
|
|
cd ${.CURDIR}/pkgsrc && git pull
|
2011-02-10 18:00:02 +01:00
|
|
|
cd ${.CURDIR}/pkgsrc/minix && sh minibootstrap.sh
|
2010-07-20 19:09:44 +02:00
|
|
|
|
2011-01-31 01:58:50 +01:00
|
|
|
pkgsrc-checkout: git
|
2010-11-23 12:12:06 +01:00
|
|
|
cd ${.CURDIR}/pkgsrc && git checkout minix-master
|
2011-02-10 16:05:18 +01:00
|
|
|
cd ${.CURDIR}/pkgsrc/minix && sh minibootstrap.sh
|
2010-07-20 19:09:44 +02:00
|
|
|
|
2011-01-31 01:58:50 +01:00
|
|
|
pkgsrc-update: git
|
2010-07-20 19:09:44 +02:00
|
|
|
cd ${.CURDIR}/pkgsrc && git pull
|
2011-02-10 16:05:18 +01:00
|
|
|
cd ${.CURDIR}/pkgsrc/minix && sh minibootstrap.sh
|
2011-01-31 01:58:50 +01:00
|
|
|
|
|
|
|
git:
|
2011-01-31 17:53:53 +01:00
|
|
|
pkgin update
|
|
|
|
pkgin install scmgit-base
|