diff options
author | glen.beasley%sun.com <devnull@localhost> | 2004-03-01 18:32:00 +0000 |
---|---|---|
committer | glen.beasley%sun.com <devnull@localhost> | 2004-03-01 18:32:00 +0000 |
commit | 8fbe26c25db1088ba411ce704849a35a01b9d279 (patch) | |
tree | e4eb18b428f3703e988a21d9a3c4484a2306f1a0 | |
parent | 92bf1b8060fd586525f26b4df24e1de212739edb (diff) | |
download | nss-hg-8fbe26c25db1088ba411ce704849a35a01b9d279.tar.gz |
RPM changes
-rw-r--r-- | security/nss/pkg/linux/Makefile | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/security/nss/pkg/linux/Makefile b/security/nss/pkg/linux/Makefile index 52ee9238b..910fa6889 100644 --- a/security/nss/pkg/linux/Makefile +++ b/security/nss/pkg/linux/Makefile @@ -19,13 +19,14 @@ include $(CORE_DEPTH)/coreconf/config.mk publish: $(MAKE) clean mkdir -p SOURCES SRPMS RPMS BUILD - mkdir -p usr/lib/mps/secv1 + mkdir -p opt/sun/private/lib find $(CORE_DEPTH)/../dist/$(OBJDIR)/lib -type l \ \( -name "*.so" -o -name "*.chk" \) \ - -exec cp {} usr/lib/mps/secv1 \; + -exec cp {} opt/sun/private/lib \; (cd $(CORE_DEPTH)/../dist/public && tar cphf - .) \ - | (mkdir -p usr/include/mps && cd usr/include/mps && tar xvfBp -) - tar czvf $(NAME)-$(VERSION).tar.gz usr + | (mkdir -p opt/sun/private/include && cd opt/sun/private/include && tar xvfBp -) + + tar czvf $(NAME)-$(VERSION).tar.gz opt echo "%define _topdir `pwd`" >temp.spec sed -e "s/NAME_REPLACE/$(NAME)/" \ -e "s/VERSION_REPLACE/$(VERSION)/" \ @@ -34,24 +35,24 @@ publish: echo "" >>temp.spec echo "%files" >>temp.spec echo "%defattr(-,root,root)" >>temp.spec - echo "%dir /usr" >>temp.spec - echo "%dir /usr/lib" >>temp.spec - echo "%dir /usr/lib/mps" >>temp.spec - echo "%dir /usr/lib/mps/secv1" >>temp.spec - find usr \( -name "*.so" -o -name "*.chk" \) \ + echo "%dir /opt" >>temp.spec + echo "%dir /opt/sun" >>temp.spec + echo "%dir /opt/sun/private" >>temp.spec + echo "%dir /opt/sun/private/lib" >>temp.spec + find opt \( -name "*.so" -o -name "*.chk" \) \ | sed -e "s-^-/-" >>temp.spec echo "" >>temp.spec echo "%files devel" >>temp.spec echo "%defattr(-,root,root)" >>temp.spec - find usr -type d | sed -e "s-^-%dir /-" >>temp.spec - find usr -type f ! \( -name "*.so" -o -name "*.chk" \) \ + find opt -type d | sed -e "s-^-%dir /-" >>temp.spec + find opt -type f ! \( -name "*.so" -o -name "*.chk" \) \ | sed -e "s-^-/-" >>temp.spec cp $(NAME)-$(VERSION).tar.gz SOURCES rpm -ba temp.spec clean:: rm -rf SOURCES SRPMS RPMS BUILD - rm -rf usr + rm -rf opt rm -f temp.spec rm -f $(NAME)-$(VERSION).tar.gz |