2012-05-08 18:59:57 +04:00
# step 4: build the distribution image
# package lists are needed for installer and live-install images
METADIR := files/Metadata
2014-03-05 18:09:56 +04:00
# preparation targets of features.in/build-distro/lib/build-distro.mk
2012-05-08 18:59:57 +04:00
WHATEVER += metadata
2012-06-13 23:07:10 +04:00
# handle these too
DOT_BASE += $( BASE_PACKAGES_REGEXP)
2013-11-25 09:21:26 +04:00
# args: type, name
d e f i n e d u m p
i f [ - n "$($(2)_$(1))" ] ; t h e n \
echo -e " \n## $( 2) _ $( 1) " ; \
case " $( 1) " in \
PACKAGES) echo " $( $( 2) _$( 1) ) " ; ; \
2016-04-01 14:54:02 +03:00
LISTS) echo -e " \n# $( $( 2) _$( 1) ) " ; cat $( $( 2) _$( 1) ) ; ; \
2013-11-25 09:21:26 +04:00
esac ; \
f i ;
2012-05-08 18:59:57 +04:00
e n d e f
# BASE_PACKAGES, BASE_LISTS and whatever else goes into base install;
# thus construct requisite .base packagelist for alterator-pkg
metadata-.base :
@cd $( call list,/) ; \
{ \
2013-11-25 09:21:26 +04:00
echo "## generated by features.in/metadata/lib/50-metadata.mk" ; \
$( foreach p,SYSTEM COMMON THE BASE,$( call dump,PACKAGES,$( p) ) ) \
$( foreach l,THE BASE,$( call dump,LISTS,$( l) ) ) \
2012-05-08 18:59:57 +04:00
if [ -n " $( DOT_BASE) " ] ; then \
echo -e " \n## DOT_BASE\n $( DOT_BASE) " ; \
fi ; \
} | sed -re '/^[^[:space:]#]/ s/[[:space:]]+/\n/g' > .base
# see also alterator-pkg (backend3/pkg-install);
# we only tar up what's up to it
metadata : metadata -.base
@mkdir -p $( METADIR) ; \
tar -C $( PKGDIR) -cvf - \
2013-01-18 17:28:38 +04:00
$( call rlist,$( THE_GROUPS) $( MAIN_GROUPS) .base) \
$( call rgroup,$( THE_GROUPS) $( MAIN_GROUPS) ) \
2016-03-28 08:57:11 +03:00
$( call rprofile,$( PKG_PROFILES) ) \
2012-05-08 18:59:57 +04:00
> $( METADIR) /pkg-groups.tar