File: meta/lnx-bbc/Makefile
base-0 patch-1
Line 1Line 1
GARNAME = lnx-bbc
GARNAME = lnx-bbc
#GARVERSION := $(shell date --iso-8601=seconds)
GARVERSION := 2.1
GARVERSION := $(shell date --iso-8601=seconds)
#GARVERSION := 2.0
DISTNAME := $(GARNAME)-$(shell date --iso-8601)
CATEGORIES = meta
# MASTER_SITES =
DISTNAME := $(GARNAME)-$(shell date --iso-8601)
CATEGORIES = meta
# MASTER_SITES =
DISTFILES = autorun.inf lnxbbc.htm bbc.css logo.png
DISTFILES = autorun.inf lnxbbc.htm bbc.css logo.png hash_search.c
# PATCHFILES =
MAINTAINER = Seth Schoen <schoen@loyalty.org>
LICENSE = GPL
# PATCHFILES =
MAINTAINER = Seth Schoen <schoen@loyalty.org>
LICENSE = GPL
Line 22Line 22
# Dependencies are of the form categorydir/packagedir
# LIBDEPS are for libraries, and DEPENDS are for everything else
# Dependencies are of the form categorydir/packagedir
# LIBDEPS are for libraries, and DEPENDS are for everything else
LIBDEPS =
DEPENDS = meta/singularity meta/lnx.img special/rawrite2 special/rawwritewin special/archivers-msdos special/docopen special/putty kernel/cloop-module
LIBDEPS = crypto/openssl
DEPENDS = meta/singularity meta/lnx.img special/rawrite2 special/rawwritewin special/archivers-msdos special/docopen special/putty
BUILDDEPS = devel/ccache disk/cdrtools

BUILDDEPS = devel/ccache disk/cdrtools

Line 40Line 40
singularity_PRUNE_PATHS += /usr
singularity_PRUNE_PATHS += /boot/bzImage

singularity_PRUNE_PATHS += /usr
singularity_PRUNE_PATHS += /boot/bzImage


# FIXME: Not sure if this is the correct place for this. -NickM
singularity_PRUNE_PATHS += $(libdir)/mozilla-*/res/samples

singularity_PRUNE_SCRIPTS += strip
singularity_PRUNE_SCRIPTS += terminfo
singularity_PRUNE_SCRIPTS += xemacs-packages
singularity_PRUNE_SCRIPTS += strip
singularity_PRUNE_SCRIPTS += terminfo
singularity_PRUNE_SCRIPTS += xemacs-packages
Line 60Line 63
MEDIA = cdrom

MEDIA = cdrom

build-custom:
$(WORKDIR)/hash_search: $(WORKDIR)/hash_search.c
        $(CC) -O9 -o $(WORKDIR)/hash_search $(WORKDIR)/hash_search.c -lcrypto

build-custom: $(WORKDIR)/hash_search
        mkdir -p $(WORKDIR)/$(MEDIA)
        # for Nick's experiment
        mkdir -p $(WORKDIR)/$(MEDIA)/mnt
        mkdir -p $(WORKDIR)/$(MEDIA)
        # for Nick's experiment
        mkdir -p $(WORKDIR)/$(MEDIA)/mnt
Line 68Line 74
        mkdir -p $(WORKDIR)/$(MEDIA)/dev
        mkdir -p $(WORKDIR)/$(MEDIA)/mnt/initrd
        mkdir -p $(WORKDIR)/$(MEDIA)/mnt/cloop
        mkdir -p $(WORKDIR)/$(MEDIA)/dev
        mkdir -p $(WORKDIR)/$(MEDIA)/mnt/initrd
        mkdir -p $(WORKDIR)/$(MEDIA)/mnt/cloop
        cp $(STAGINGDIR)/lnx.img/lnx.img $(WORKDIR)/$(MEDIA)
        cp $(STAGINGDIR)/singularity/singularity $(WORKDIR)/$(MEDIA)
        cp $(DESTDIR)/boot/cloop.o $(WORKDIR)/$(MEDIA)
        cp $(DESTDIR)/lnx.img $(WORKDIR)/$(MEDIA)
        cp $(DESTDIR)/singularity $(WORKDIR)/$(MEDIA)
        cp $(lnximg_DESTDIR)/boot/cloop.o $(WORKDIR)/$(MEDIA)
        cp ../../CREDITS $(WORKDIR)/$(MEDIA)
        mkdir -p $(WORKDIR)/$(MEDIA)/rawrite
        mkdir -p $(WORKDIR)/$(MEDIA)/archivers
        mkdir -p $(WORKDIR)/$(MEDIA)/putty
        cp ../../CREDITS $(WORKDIR)/$(MEDIA)
        mkdir -p $(WORKDIR)/$(MEDIA)/rawrite
        mkdir -p $(WORKDIR)/$(MEDIA)/archivers
        mkdir -p $(WORKDIR)/$(MEDIA)/putty
        install $(STAGINGDIR)/rawrite2/RAWRITE2.EXE $(WORKDIR)/$(MEDIA)/rawrite
        install $(STAGINGDIR)/rawwritewin/rawwritewin.exe $(STAGINGDIR)/rawwritewin/diskio.dll $(WORKDIR)/$(MEDIA)/rawrite
        install $(STAGINGDIR)/archivers-msdos/gzip.exe $(STAGINGDIR)/archivers-msdos/tar.exe $(WORKDIR)/$(MEDIA)/archivers
        install $(STAGINGDIR)/putty/putty.exe $(STAGINGDIR)/putty/pscp.exe $(WORKDIR)/$(MEDIA)/putty
        install $(STAGINGDIR)/docopen/docopen.exe $(WORKDIR)/$(MEDIA)
        install $(DESTDIR)$(bindir)/RAWRITE2.EXE $(WORKDIR)/$(MEDIA)/rawrite
        install $(DESTDIR)$(bindir)/rawwritewin.exe $(DESTDIR)$(bindir)/diskio.dll $(WORKDIR)/$(MEDIA)/rawrite
        install $(DESTDIR)$(bindir)/gzip.exe $(DESTDIR)$(bindir)/tar.exe $(WORKDIR)/$(MEDIA)/archivers
        install $(DESTDIR)$(bindir)/putty.exe $(DESTDIR)$(bindir)/pscp.exe $(WORKDIR)/$(MEDIA)/putty
        install $(DESTDIR)$(bindir)/docopen.exe $(WORKDIR)/$(MEDIA)
        install -m 644 $(DOWNLOADDIR)/autorun.inf $(DOWNLOADDIR)/lnxbbc.htm $(DOWNLOADDIR)/bbc.css $(DOWNLOADDIR)/logo.png $(WORKDIR)/$(MEDIA)
        mkisofs -v -d -N -D -R -T -c boot.catalog -b lnx.img -A "Linux" -V "LNX-BBC" -P "version_$(GARVERSION)" -o $(WORKDIR)/bbc-STABLE-$(GARVERSION).iso $(WORKDIR)/$(MEDIA)
        install -m 644 $(DOWNLOADDIR)/autorun.inf $(DOWNLOADDIR)/lnxbbc.htm $(DOWNLOADDIR)/bbc.css $(DOWNLOADDIR)/logo.png $(WORKDIR)/$(MEDIA)
        mkisofs -v -d -N -D -R -T -c boot.catalog -b lnx.img -A "Linux" -V "LNX-BBC" -P "version_$(GARVERSION)" -o $(WORKDIR)/bbc-STABLE-$(GARVERSION).iso $(WORKDIR)/$(MEDIA)

        # hack MD5 hash of resulting image to begin with "bbcbbc"
        # (when built with make_matching=1, hash_search will output the
        # unmodified original file if it is unable to find a match)
        # For an official release, change this to (e.g.) "bbc210"
        # The next three lines are purely cosmetic and don't do anything useful!
        echo Trying to hack MD5 hash of resulting image...
        $(WORKDIR)/hash_search bbcbbc 28 < $(WORKDIR)/bbc-STABLE-$(GARVERSION).iso > $(WORKDIR)/bbc-STABLE-$(GARVERSION).iso.hash
        mv $(WORKDIR)/bbc-STABLE-$(GARVERSION).iso.hash $(WORKDIR)/bbc-STABLE-$(GARVERSION).iso
        $(MAKECOOKIE)

super-clean:
        $(MAKECOOKIE)

super-clean: