summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLars Müller2007-04-15 22:19:00 +0200
committerLars Müller2007-04-15 22:19:00 +0200
commit03f6c80bdbde54fb2048a84caf972071a5f5b5a5 (patch)
tree948a10746dede8f6fa49543cd99aea14c21604d6 /Makefile
parentCreate a file name REVISION while creating the tar ball. This is (diff)
downloadcore-03f6c80bdbde54fb2048a84caf972071a5f5b5a5.tar.gz
core-03f6c80bdbde54fb2048a84caf972071a5f5b5a5.tar.xz
core-03f6c80bdbde54fb2048a84caf972071a5f5b5a5.zip
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
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)/