4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright (c) 2016 Jim Klimov. All rights reserved.
22 # Copyright (c) 2022 Friedrich Kink. All rights reserved.
26 value=pkg:/$(COMPONENT_FMRI)-common@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
27 set name=pkg.summary value="$(COMPONENT_SUMMARY) (Base accounts and dirs)"
28 set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
29 set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
30 set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
31 set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
33 license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
35 # Ensure the UID exists till the end, until after the main packages are removed
36 # and in particular do not move databases and logs into lost+found on uninstall
37 # Note the locked user password is NL (not NP) because it has to manage crontab
38 group groupname=clamav gid=63
39 user ftpuser=false gcos-field="ClamAV Reserved UID" group=clamav password=NL \
40 username=clamav uid=63
42 # These directories can hold some content generated or downloaded at runtime
43 # and can become lost+found when you un/re-install the core packages (if these
44 # pkg actions are delivered there instead)
45 dir group=clamav owner=clamav mode=0755 path=var/clamav
46 dir group=clamav owner=clamav mode=0755 path=var/clamav/db
47 dir group=clamav owner=clamav mode=0755 path=var/clamav/run
48 dir group=clamav owner=clamav mode=0755 path=var/log/clamav
49 link path=var/clamav/log target=../log/clamav
51 file files/README-etc.txt path=etc/clamav/README.txt