From 03f6c80bdbde54fb2048a84caf972071a5f5b5a5 Mon Sep 17 00:00:00 2001 From: Lars Müller Date: Sun, 15 Apr 2007 20:19:00 +0000 Subject: Add an OpenSLX spec file to allow builds of RPMs. Currently the Makefile autogenerates packaging/rpm/openslx-filelist for the filelist of the RPM. This has to be polished. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@896 95ad53e4-c205-0410-b2fa-d234c58c8868 --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 85be3bf4..38a6cd15 100644 --- a/Makefile +++ b/Makefile @@ -75,6 +75,12 @@ tarball: cd - >/dev/null; \ OPENSLX_SOURCEDIR_SYMLINK_CREATED="yes"; \ fi; \ + echo -e "$(SLX_CONFIG_PATH)\n\ +$(SLX_BASE_PATH)\n\ +$(SLX_PRIVATE_PATH)\n\ +$(SLX_PUBLIC_PATH)\n\ +$(USR_BIN_PATH)/*" \ + >packaging/rpm/openslx-filelist; \ cd .. >/dev/null; \ tar cfhj \ "$${svn_repo_name}/openslx-$${OPENSLX_VERSION_STRING}.tar.bz2" \ @@ -83,7 +89,7 @@ tarball: test "$${OPENSLX_SOURCEDIR_SYMLINK_CREATED}" = "yes" && \ rm -f "openslx-$${OPENSLX_VERSION_STRING}"; \ cd - >/dev/null; \ - rm REVISION + rm REVISION packaging/rpm/openslx-filelist install: @echo "Checking installation requirements..."; \ @@ -207,7 +213,7 @@ functions via\n# inclusion: '. /etc/functions' ..." \ OPENSLX_VERSION_SVNREV=$$(svnversion .); \ fi; \ . ./VERSIONS; \ - echo "echo $${OPENSLX_VERSION_STRING}" \ + echo -e "#! /bin/sh\n\necho $${OPENSLX_VERSION_STRING}" \ > $(DESTDIR)${SLX_BIN_PATH}/slxversion @chmod a+x $(DESTDIR)${SLX_BIN_PATH}/slxversion @ln -sf $(SLX_BIN_PATH)/slxversion $(DESTDIR)$(USR_BIN_PATH)/ -- cgit v1.2.3-55-g7522