Mike Gahagan ec1f1e
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mike Gahagan ec1f1e
#
Mike Gahagan ec1f1e
#   Makefile of /dracut/add-luks-keys
Mike Gahagan ec1f1e
#   Description: Create and add a luks key to all luks devices to allow booting of a system without entering a passphrase
Mike Gahagan ec1f1e
#   Author: Jan Stodola <jstodola@redhat.com>
Mike Gahagan ec1f1e
#
Mike Gahagan ec1f1e
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mike Gahagan ec1f1e
#
Mike Gahagan ec1f1e
#   Copyright (c) 2016 Red Hat, Inc. All rights reserved.
Mike Gahagan ec1f1e
#   Red Hat Internal
Mike Gahagan ec1f1e
#
Mike Gahagan ec1f1e
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mike Gahagan ec1f1e
Mike Gahagan ec1f1e
export TEST=/dracut/add-luks-keys
Mike Gahagan ec1f1e
export TESTVERSION=1.0
Mike Gahagan ec1f1e
export DESCRIPTION="Create and add a luks key to all luks devices to allow booting of a system without entering a passphrase"
Mike Gahagan ec1f1e
Mike Gahagan ec1f1e
BUILT_FILES=
Mike Gahagan ec1f1e
Mike Gahagan ec1f1e
FILES=$(METADATA) runtest.sh Makefile PURPOSE
Mike Gahagan ec1f1e
Mike Gahagan ec1f1e
.PHONY: all install download clean
Mike Gahagan ec1f1e
Mike Gahagan ec1f1e
run: $(FILES) build
Mike Gahagan ec1f1e
	./runtest.sh
Mike Gahagan ec1f1e
Mike Gahagan ec1f1e
build: $(BUILT_FILES)
Mike Gahagan ec1f1e
	test -x runtest.sh || chmod a+x runtest.sh
Mike Gahagan ec1f1e
Mike Gahagan ec1f1e
clean:
Mike Gahagan ec1f1e
	rm -f *~ $(BUILT_FILES)
Mike Gahagan ec1f1e
Mike Gahagan ec1f1e
Mike Gahagan ec1f1e
include /usr/share/rhts/lib/rhts-make.include
Mike Gahagan ec1f1e
Mike Gahagan ec1f1e
$(METADATA): Makefile
Mike Gahagan ec1f1e
	@echo "Owner:           Jan Stodola <jstodola@redhat.com>" > $(METADATA)
Mike Gahagan ec1f1e
	@echo "Name:            $(TEST)" >> $(METADATA)
Mike Gahagan ec1f1e
	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
Mike Gahagan ec1f1e
	@echo "Path:            $(TEST_DIR)" >> $(METADATA)
Mike Gahagan ec1f1e
	@echo "Description:     $(DESCRIPTION)" >> $(METADATA)
Mike Gahagan ec1f1e
	@echo "Type:            Install" >> $(METADATA)
Mike Gahagan ec1f1e
	@echo "TestTime:        10m" >> $(METADATA)
Mike Gahagan ec1f1e
	@echo "RunFor:          dracut" >> $(METADATA)
Mike Gahagan ec1f1e
	@echo "Requires:        dracut" >> $(METADATA)
Mike Gahagan ec1f1e
	@echo "Priority:        Normal" >> $(METADATA)
Mike Gahagan ec1f1e
	@echo "License:         Red Hat Internal" >> $(METADATA)
Mike Gahagan ec1f1e
	@echo "Confidential:    no" >> $(METADATA)
Mike Gahagan ec1f1e
	@echo "Destructive:     no" >> $(METADATA)
Mike Gahagan ec1f1e
	@echo "Releases:        -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA)
Mike Gahagan ec1f1e
Mike Gahagan ec1f1e
	rhts-lint $(METADATA)