spacewalk/config/etc/pki/tls/certs/spacewalk.crt | 1 - spacewalk/config/etc/pki/tls/certs/spacewalk.crt.symlink | 1 + spacewalk/config/etc/pki/tls/private/spacewalk.key | 1 - spacewalk/config/etc/pki/tls/private/spacewalk.key.symlink | 1 + spacewalk/config/spacewalk-config.spec | 7 +++++++ 5 files changed, 9 insertions(+), 2 deletions(-)
New commits: commit 99fb8ef87105d76e8fe5e1ae8cc2e1c817f9494a Author: Jan Pazdziora jpazdziora@redhat.com Date: Fri Sep 18 09:59:24 2009 +0200
Create the symlinks in .spec, based on .symlink "templates".
We do this to remove the dangling symlink from our repo.
diff --git a/spacewalk/config/etc/pki/tls/certs/spacewalk.crt b/spacewalk/config/etc/pki/tls/certs/spacewalk.crt deleted file mode 120000 index 087f4e7..0000000 --- a/spacewalk/config/etc/pki/tls/certs/spacewalk.crt +++ /dev/null @@ -1 +0,0 @@ -../../../httpd/conf/ssl.crt/server.crt \ No newline at end of file diff --git a/spacewalk/config/etc/pki/tls/certs/spacewalk.crt.symlink b/spacewalk/config/etc/pki/tls/certs/spacewalk.crt.symlink new file mode 100644 index 0000000..0d5e690 --- /dev/null +++ b/spacewalk/config/etc/pki/tls/certs/spacewalk.crt.symlink @@ -0,0 +1 @@ +Link to ../../../httpd/conf/ssl.crt/server.crt diff --git a/spacewalk/config/etc/pki/tls/private/spacewalk.key b/spacewalk/config/etc/pki/tls/private/spacewalk.key deleted file mode 120000 index 0445eb7..0000000 --- a/spacewalk/config/etc/pki/tls/private/spacewalk.key +++ /dev/null @@ -1 +0,0 @@ -../../../httpd/conf/ssl.key/server.key \ No newline at end of file diff --git a/spacewalk/config/etc/pki/tls/private/spacewalk.key.symlink b/spacewalk/config/etc/pki/tls/private/spacewalk.key.symlink new file mode 100644 index 0000000..6d29ca3 --- /dev/null +++ b/spacewalk/config/etc/pki/tls/private/spacewalk.key.symlink @@ -0,0 +1 @@ +Link to ../../../httpd/conf/ssl.key/server.key diff --git a/spacewalk/config/spacewalk-config.spec b/spacewalk/config/spacewalk-config.spec index 5d09248..f5af2ad 100644 --- a/spacewalk/config/spacewalk-config.spec +++ b/spacewalk/config/spacewalk-config.spec @@ -45,6 +45,13 @@ tar -C $RPM_BUILD_ROOT%{prepdir} -cf - etc \
echo "" > $RPM_BUILD_ROOT/%{_sysconfdir}/rhn/rhn.conf
+find $RPM_BUILD_ROOT -name '*.symlink' | \ + while read filename ; do linkname=${filename%.symlink} ; \ + target=`sed -s 's/^Link to //' $filename` ; \ + ln -sf $target $linkname ; \ + rm -f $filename ; \ + done + %clean rm -rf $RPM_BUILD_ROOT
spacewalk-commits@lists.fedorahosted.org