Reorganize stuff in repo to make xbps-src an independent package.

This commit is contained in:
Juan RP 2011-11-18 17:36:14 +01:00
parent eac23f408f
commit ccc3eaa70f
9 changed files with 12 additions and 32 deletions

View file

@ -1,8 +1,7 @@
# #
# HTTP/FTP vars that can be used by templates. # Common variables that can be used by xbps-src.
# #
# SITE used for ditfiles mirrors. For use in $distfiles.
# SITE used for ditfiles mirrors
SOURCEFORGE_SITE="http://downloads.sourceforge.net/sourceforge" SOURCEFORGE_SITE="http://downloads.sourceforge.net/sourceforge"
NONGNU_SITE="http://download.savannah.nongnu.org/releases" NONGNU_SITE="http://download.savannah.nongnu.org/releases"
UBUNTU_SITE="http://archive.ubuntu.com/ubuntu/pool" UBUNTU_SITE="http://archive.ubuntu.com/ubuntu/pool"
@ -16,7 +15,6 @@ MOZILLA_SITE="http://ftp.mozilla.org/pub/mozilla.org"
GNU_SITE="http://mirrors.kernel.org/gnu" GNU_SITE="http://mirrors.kernel.org/gnu"
FREEDESKTOP_SITE="http://freedesktop.org/software" FREEDESKTOP_SITE="http://freedesktop.org/software"
# Repetitive sub homepage's with no real project page
# repetative sub homepage's with no real project page # ie. some gnome and xorg projects. For use in $homepage.
# ie. some gnome and xorg projects
XORG_HOME="http://xorg.freedesktop.org/wiki/" XORG_HOME="http://xorg.freedesktop.org/wiki/"

View file

@ -1,7 +1,7 @@
include vars.mk include vars.mk
BINS = xbps-src BINS = xbps-src
SUBDIRS = etc common libexec helpers shutils SUBDIRS = etc libexec helpers shutils
.PHONY: all .PHONY: all
all: all:

View file

@ -1,16 +0,0 @@
include ../vars.mk
.PHONY: all
all:
.PHONY: clean
clean:
.PHONY: install
install:
install -d $(DESTDIR)$(SHAREDIR)/common
install -m 644 *.sh *.txt $(DESTDIR)$(SHAREDIR)/common
.PHONY: uninstall
uninstall:
-rm -rf $(DESTDIR)$(SHAREDIR)/common

View file

@ -24,7 +24,6 @@ install:
if [ ! -d $(DESTDIR)$(ETCDIR) ]; then \ if [ ! -d $(DESTDIR)$(ETCDIR) ]; then \
install -d $(DESTDIR)$(ETCDIR); \ install -d $(DESTDIR)$(ETCDIR); \
fi fi
if [ ! -f $(DESTDIR)$(ETCDIR)/$(CONF_FILE) ]; then \ if [ ! -f $(DESTDIR)$(ETCDIR)/$(CONF_FILE) ]; then \
install -m644 $(CONF_FILE) $(DESTDIR)$(ETCDIR); \ install -m644 $(CONF_FILE) $(DESTDIR)$(ETCDIR); \
fi fi

View file

@ -29,10 +29,10 @@ set_defvars()
XBPS_HELPERSDIR=${XBPS_SHAREDIR}/helpers XBPS_HELPERSDIR=${XBPS_SHAREDIR}/helpers
XBPS_SHUTILSDIR=${XBPS_SHAREDIR}/shutils XBPS_SHUTILSDIR=${XBPS_SHAREDIR}/shutils
XBPS_COMMONVARSDIR=${XBPS_SHAREDIR}/common
XBPS_META_PATH=$XBPS_MASTERDIR/var/db/xbps XBPS_META_PATH=$XBPS_MASTERDIR/var/db/xbps
XBPS_PKGMETADIR=$XBPS_META_PATH/metadata XBPS_PKGMETADIR=$XBPS_META_PATH/metadata
XBPS_SRCPKGDIR=$XBPS_DISTRIBUTIONDIR/srcpkgs XBPS_SRCPKGDIR=$XBPS_DISTRIBUTIONDIR/srcpkgs
XBPS_COMMONDIR=${XBPS_DISTRIBUTIONDIR}/common
if [ -n "$IN_CHROOT" ]; then if [ -n "$IN_CHROOT" ]; then
XBPS_DESTDIR=/destdir XBPS_DESTDIR=/destdir
@ -50,8 +50,7 @@ set_defvars()
fi fi
XBPS_TRIGGERSDIR=$XBPS_SRCPKGDIR/xbps-triggers/files XBPS_TRIGGERSDIR=$XBPS_SRCPKGDIR/xbps-triggers/files
DDIRS="TRIGGERSDIR HELPERSDIR SRCPKGDIR COMMONVARSDIR SHUTILSDIR" DDIRS="DISTRIBUTIONDIR TRIGGERSDIR HELPERSDIR SRCPKGDIR SHUTILSDIR COMMONDIR"
DDIRS="$DDIRS DISTRIBUTIONDIR"
for i in ${DDIRS}; do for i in ${DDIRS}; do
eval val="\$XBPS_$i" eval val="\$XBPS_$i"
if [ ! -d "$val" ]; then if [ ! -d "$val" ]; then

View file

@ -63,7 +63,7 @@ _show_shlib_pkg_deps()
show_pkg_revdeps() show_pkg_revdeps()
{ {
local SHLIBS_MAP="$XBPS_COMMONVARSDIR/mapping_shlib_binpkg.txt" local SHLIBS_MAP=$XBPS_COMMONDIR/shlibs
local _pkgn shlibs local _pkgn shlibs
[ -z "$1" ] && return 1 [ -z "$1" ] && return 1

View file

@ -30,7 +30,7 @@ info_tmpl()
{ {
local i= local i=
for f in $XBPS_COMMONVARSDIR/*.sh; do for f in $XBPS_COMMONDIR/*.sh; do
[ -r ${f} ] && . ${f} [ -r ${f} ] && . ${f}
done done
@ -132,7 +132,7 @@ setup_tmpl()
[ -n "$DESTDIR" ] && return 0 [ -n "$DESTDIR" ] && return 0
fi fi
for f in $XBPS_COMMONVARSDIR/*.sh; do for f in $XBPS_COMMONDIR/*.sh; do
[ -r ${f} ] && . ${f} [ -r ${f} ] && . ${f}
done done

View file

@ -46,7 +46,7 @@ verify_rundeps()
local j f nlib verify_deps maplib found_dup igndir soname_arch local j f nlib verify_deps maplib found_dup igndir soname_arch
local broken rdep found rsonamef soname_list revbumped tmplf newrev local broken rdep found rsonamef soname_list revbumped tmplf newrev
maplib="$XBPS_COMMONVARSDIR/mapping_shlib_binpkg.txt" maplib=$XBPS_COMMONDIR/shlibs
[ -n "$noarch" -o -n "$noverifyrdeps" ] && return 0 [ -n "$noarch" -o -n "$noverifyrdeps" ] && return 0
msg_normal "$pkgver: verifying required shlibs...\n" msg_normal "$pkgver: verifying required shlibs...\n"