| 1 | NAME = pca |
|---|
| 2 | VERSION = 20120326-01 |
|---|
| 3 | CATEGORIES = utils |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | DESCRIPTION = Patch Check Advanced |
|---|
| 7 | define BLURB |
|---|
| 8 | Patch Check Advanced (pca) generates lists of installed and |
|---|
| 9 | missing patches for Sun Solaris systems and optionally downloads patches. |
|---|
| 10 | It resolves dependencies between patches and installs them in correct order. |
|---|
| 11 | It can be the only tool you ever need for patch management on a single |
|---|
| 12 | machine or a complete network. Just one perl script, it doesn't need |
|---|
| 13 | compilation nor installation, and it doesn't need root permissions to run. |
|---|
| 14 | It works on all versions of Solaris, both SPARC and x86. |
|---|
| 15 | endef |
|---|
| 16 | |
|---|
| 17 | MASTER_SITES += http://www.par.univie.ac.at/solaris/pca/download/ |
|---|
| 18 | MASTER_SITES += http://www.par.univie.ac.at/solaris/pca/contrib/ |
|---|
| 19 | DISTFILES = $(NAME)-$(VERSION) |
|---|
| 20 | DISTFILES += chkmin |
|---|
| 21 | DISTFILES += mkxref |
|---|
| 22 | DISTFILES += clean |
|---|
| 23 | DISTFILES += cleanup_sadm |
|---|
| 24 | DISTFILES += COPYING |
|---|
| 25 | DISTFILES += pca.conf |
|---|
| 26 | |
|---|
| 27 | PATCHFILES = 0001-prefer-opencsw-perl.diff |
|---|
| 28 | PATCHFILES += 0002-Add-etc-opt-csw-as-config-location.patch |
|---|
| 29 | |
|---|
| 30 | WORKSRC = $(WORKDIR) |
|---|
| 31 | PATCHDIR = $(WORKDIR) |
|---|
| 32 | |
|---|
| 33 | CONFIGURE_SCRIPTS = |
|---|
| 34 | BUILD_SCRIPTS = |
|---|
| 35 | TEST_SCRIPTS = |
|---|
| 36 | INSTALL_SCRIPTS = custom |
|---|
| 37 | |
|---|
| 38 | VENDOR_URL = http://www.par.univie.ac.at/solaris/pca/ |
|---|
| 39 | SPKG_VERSION = $(shell echo $(VERSION) | sed -e 's/-/./g') |
|---|
| 40 | |
|---|
| 41 | SAMPLECONF = /etc/opt/csw/pca.conf |
|---|
| 42 | |
|---|
| 43 | ARCHALL = 1 |
|---|
| 44 | |
|---|
| 45 | # Search path for wget, get all we can |
|---|
| 46 | CHECKPKG_OVERRIDES_CSWpca += file-with-bad-content|/usr/local|root/opt/csw/bin/pca |
|---|
| 47 | CHECKPKG_OVERRIDES_CSWpca += file-with-bad-content|/usr/local|root/opt/csw/share/man/man8/pca.8 |
|---|
| 48 | |
|---|
| 49 | include gar/category.mk |
|---|
| 50 | |
|---|
| 51 | post-extract-modulated: |
|---|
| 52 | mv $(WORKSRC)/$(DISTNAME) $(WORKSRC)/pca |
|---|
| 53 | @$(MAKECOOKIE) |
|---|
| 54 | |
|---|
| 55 | install-custom: |
|---|
| 56 | ginstall -d $(DESTDIR)$(bindir) |
|---|
| 57 | ginstall $(WORKSRC)/pca $(DESTDIR)$(bindir)/pca |
|---|
| 58 | ginstall -d $(DESTDIR)$(sharedstatedir)/pca/contrib |
|---|
| 59 | ginstall $(WORKSRC)/chkmin $(DESTDIR)$(sharedstatedir)/pca/contrib/chkmin |
|---|
| 60 | ginstall $(WORKSRC)/mkxref $(DESTDIR)$(sharedstatedir)/pca/contrib/mkxref |
|---|
| 61 | ginstall $(WORKSRC)/clean $(DESTDIR)$(sharedstatedir)/pca/contrib/clean |
|---|
| 62 | ginstall $(WORKSRC)/cleanup_sadm $(DESTDIR)$(sharedstatedir)/pca/contrib/cleanup_sadm |
|---|
| 63 | ginstall -d $(DESTDIR)/etc/opt/csw |
|---|
| 64 | ginstall $(WORKSRC)/pca.conf $(DESTDIR)/etc/opt/csw |
|---|
| 65 | ginstall -d $(DESTDIR)$(mandir)/man8 |
|---|
| 66 | pod2man --section=8 $(WORKSRC)/pca > $(DESTDIR)$(mandir)/man8/pca.8 |
|---|
| 67 | @$(MAKECOOKIE) |
|---|