| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | NAME = cswutils |
|---|
| 4 | VERSION = 1.23 |
|---|
| 5 | CATEGORIES = utils |
|---|
| 6 | GARTYPE = v2 |
|---|
| 7 | |
|---|
| 8 | DESCRIPTION = Utilities for CSW maintainers |
|---|
| 9 | define BLURB |
|---|
| 10 | endef |
|---|
| 11 | |
|---|
| 12 | SVNROOT = http://opencsw.svn.sourceforge.net/svnroot/opencsw/utilities/ |
|---|
| 13 | SVN_REV = 364 |
|---|
| 14 | |
|---|
| 15 | SVNROOT_gar = https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2/lib/python/ |
|---|
| 16 | SVN_REV_gar = HEAD |
|---|
| 17 | |
|---|
| 18 | MASTER_SITES = |
|---|
| 19 | |
|---|
| 20 | DISTFILES = COPYING |
|---|
| 21 | DISTFILES += checkpkg checkpkg.8 |
|---|
| 22 | DISTFILES += cpan2pkg |
|---|
| 23 | DISTFILES += createpkg createpkg.8 |
|---|
| 24 | DISTFILES += stagepkg stagepkg.8 |
|---|
| 25 | DISTFILES += stagepkg stagepkg.8 |
|---|
| 26 | |
|---|
| 27 | BUILD_DEP_PKGS = CSWrsync |
|---|
| 28 | |
|---|
| 29 | RUNTIME_DEP_PKGS += CSWcoreutils |
|---|
| 30 | RUNTIME_DEP_PKGS += CSWfakeroot |
|---|
| 31 | RUNTIME_DEP_PKGS += CSWperl |
|---|
| 32 | RUNTIME_DEP_PKGS += CSWpmhtmltree |
|---|
| 33 | RUNTIME_DEP_PKGS += CSWpmlibwww |
|---|
| 34 | RUNTIME_DEP_PKGS += CSWpmyaml |
|---|
| 35 | RUNTIME_DEP_PKGS += CSWpy-cheetah |
|---|
| 36 | RUNTIME_DEP_PKGS += CSWpy-hachoir-core |
|---|
| 37 | RUNTIME_DEP_PKGS += CSWpy-hachoir-parser |
|---|
| 38 | RUNTIME_DEP_PKGS += CSWpy-libmagic |
|---|
| 39 | RUNTIME_DEP_PKGS += CSWpy-progressbar |
|---|
| 40 | RUNTIME_DEP_PKGS += CSWpy-sqlobject |
|---|
| 41 | RUNTIME_DEP_PKGS += CSWpy-curl |
|---|
| 42 | RUNTIME_DEP_PKGS += CSWpython |
|---|
| 43 | |
|---|
| 44 | WORKSRC = $(WORKDIR) |
|---|
| 45 | |
|---|
| 46 | CONFIGURE_SCRIPTS = |
|---|
| 47 | BUILD_SCRIPTS = |
|---|
| 48 | TEST_SCRIPTS = |
|---|
| 49 | INSTALL_SCRIPTS = custom |
|---|
| 50 | |
|---|
| 51 | SPKG_SOURCEURL = http://www.opencsw.org/ |
|---|
| 52 | |
|---|
| 53 | ARCHALL = 1 |
|---|
| 54 | |
|---|
| 55 | CHECKPKG_OVERRIDES_CSWcswutils += surplus-dependency |
|---|
| 56 | CHECKPKG_OVERRIDES_CSWcswutils += pkgname-does-not-start-with-CSWpy- |
|---|
| 57 | CHECKPKG_OVERRIDES_CSWcswutils += catalogname-does-not-start-with-py_ |
|---|
| 58 | CHECKPKG_OVERRIDES_CSWcswutils += archall-with-arch-paths|/opt/csw/share/opencsw/gar/commondirs-i386 |
|---|
| 59 | CHECKPKG_OVERRIDES_CSWcswutils += archall-with-arch-paths|/opt/csw/share/opencsw/gar/commondirs-sparc |
|---|
| 60 | |
|---|
| 61 | # possibly remove these and omit the *test* files from distribution entirely |
|---|
| 62 | CHECKPKG_OVERRIDES_CSWcswutils += file-with-bad-content|/export/home|root/opt/csw/lib/python/csw/testdata/rpaths.py |
|---|
| 63 | CHECKPKG_OVERRIDES_CSWcswutils += file-with-bad-content|/export/home|root/opt/csw/lib/python/csw/package_checks_test.py |
|---|
| 64 | CHECKPKG_OVERRIDES_CSWcswutils += file-with-bad-content|/opt/build|root/opt/csw/lib/python/csw/testdata/rpaths.py |
|---|
| 65 | CHECKPKG_OVERRIDES_CSWcswutils += file-with-bad-content|/opt/build|root/opt/csw/lib/python/csw/package_checks_test.py |
|---|
| 66 | CHECKPKG_OVERRIDES_CSWcswutils += file-with-bad-content|/usr/local|root/opt/csw/lib/python/csw/package_checks_test.py |
|---|
| 67 | CHECKPKG_OVERRIDES_CSWcswutils += file-with-bad-content|/usr/local|root/opt/csw/lib/python/csw/testdata/rpaths.py |
|---|
| 68 | CHECKPKG_OVERRIDES_CSWcswutils += file-with-bad-content|/export/medusa|root/opt/csw/lib/python/csw/package_checks_test.py |
|---|
| 69 | CHECKPKG_OVERRIDES_CSWcswutils += file-with-bad-content|/export/medusa|root/opt/csw/lib/python/csw/testdata/rpaths.py |
|---|
| 70 | |
|---|
| 71 | ALTERNATIVES_CSWcswutils = legacy python |
|---|
| 72 | ALTERNATIVE_legacy = /opt/csw/bin/checkpkg checkpkg /opt/csw/bin/checkpkg.legacy 5 |
|---|
| 73 | ALTERNATIVE_python = /opt/csw/bin/checkpkg checkpkg /opt/csw/bin/checkpkg.python 10 |
|---|
| 74 | |
|---|
| 75 | include gar/category.mk |
|---|
| 76 | |
|---|
| 77 | install-custom: |
|---|
| 78 | @ginstall -d $(DESTDIR)$(bindir) |
|---|
| 79 | @ginstall $(WORKSRC)/checkpkg $(DESTDIR)$(bindir)/checkpkg.legacy |
|---|
| 80 | @ginstall $(WORKSRC)/cpan2pkg $(DESTDIR)$(bindir) |
|---|
| 81 | @ginstall $(WORKSRC)/createpkg $(DESTDIR)$(bindir) |
|---|
| 82 | @ginstall $(WORKSRC)/stagepkg $(DESTDIR)$(bindir) |
|---|
| 83 | @ginstall $(GARDIR)/bin/fixlibtool $(DESTDIR)$(bindir) |
|---|
| 84 | @ginstall -d $(DESTDIR)$(mandir)/man8 |
|---|
| 85 | @ginstall $(WORKSRC)/checkpkg.8 $(DESTDIR)$(mandir)/man8/ |
|---|
| 86 | @ginstall $(WORKSRC)/createpkg.8 $(DESTDIR)$(mandir)/man8/ |
|---|
| 87 | @ginstall $(WORKSRC)/stagepkg.8 $(DESTDIR)$(mandir)/man8/ |
|---|
| 88 | @ginstall -d $(DESTDIR)$(libdir)/python/csw |
|---|
| 89 | @ginstall -d $(DESTDIR)$(datadir)/opencsw/gar |
|---|
| 90 | @ginstall -m 0644 $(GARDIR)/etc/commondirs* $(DESTDIR)/$(datadir)/opencsw/gar/ |
|---|
| 91 | @rsync -av --exclude=.svn/ --exclude='*.pyc' $(GARDIR)/lib/python/ \ |
|---|
| 92 | $(DESTDIR)/$(libdir)/python/csw/ |
|---|
| 93 | @ln -s ../lib/python/csw/compare_pkgs.py \ |
|---|
| 94 | $(DESTDIR)$(bindir)/comparepkg |
|---|
| 95 | @ln -s ../lib/python/csw/csw_upload_pkg.py \ |
|---|
| 96 | $(DESTDIR)$(bindir)/csw-upload-pkg |
|---|
| 97 | @ln -s ../lib/python/csw/checkpkg2.py \ |
|---|
| 98 | $(DESTDIR)$(bindir)/checkpkg.python |
|---|
| 99 | @ln -s ../lib/python/csw/pkgdb.py \ |
|---|
| 100 | $(DESTDIR)$(bindir)/pkgdb |
|---|
| 101 | @$(MAKECOOKIE) |
|---|