Skip to content

Commit 15878a4

Browse files
authored
Merge pull request #414 from klihub/fixes/packaging
packaging: install sysconf collateral to $(DEFAULTDIR).
2 parents 23abdc8 + fce831c commit 15878a4

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,12 @@ install-systemd-%:
263263

264264
install-sysconf-%:
265265
$(Q)bin=$(patsubst install-sysconf-%,%,$@); dir=cmd/$$bin; \
266-
echo "Installing sysconf collateral for $$bin..."; \
267-
$(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)/sysconfig && \
266+
echo "Installing sysconf/default collateral for $$bin..."; \
267+
$(INSTALL) -d $(DESTDIR)$(DEFAULTDIR) && \
268268
for f in $$(find $$dir -name \*.sysconf); do \
269-
echo " $$f in $(DESTDIR)$(SYSCONFDIR)/sysconfig..."; \
269+
echo " $$f in $(DESTDIR)$(DEFAULTDIR)..."; \
270270
df=$${f##*/}; df=$${df%.sysconf}; \
271-
$(INSTALL) -m 0644 -T $$f $(DESTDIR)$(SYSCONFDIR)/sysconfig/$$df; \
271+
$(INSTALL) -m 0644 -T $$f $(DESTDIR)$(DEFAULTDIR)/$$df; \
272272
done
273273

274274
install-config-%:

docs/INSTALL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ build `rpm` packages for `CentOS 8`
6565
## Post-Install Configuration
6666

6767
The provided packages install `systemd` service files and sample configuration.
68-
The easiest way to get up and running is to copy the sample configuration in
69-
the correct place and start CRI Resource Manager using systemd. You can do
70-
this using the following commands:
68+
The easiest way to get up and running is to rename the sample configuration and
69+
start CRI Resource Manager using systemd. You can do this using the following
70+
commands:
7171

7272
```
73-
cp /usr/share/doc/cri-resource-manager/fallback.cfg.sample /etc/cri-resmgr/fallback.cfg
73+
mv /etc/cri-resmgr/fallback.cfg.sample /etc/cri-resmgr/fallback.cfg
7474
systemctl start cri-resource-manager
7575
```
7676

packaging/deb.in/rules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ override_dh_auto_build:
1616
override_dh_auto_install:
1717
export PATH="$$PATH:$$(go env GOPATH)/bin"; \
1818
make BUILD_DIRS="__BUILD_DIRS__" install DESTDIR=debian/__PACKAGE__
19+
mkdir -p debian/__PACKAGE__/usr/share/doc/__PACKAGE__
20+
cp CONTRIBUTING.md LICENSE README.md SECURITY.md cmd/*/*.sample \
21+
debian/__PACKAGE__/usr/share/doc/__PACKAGE__
22+
1923

2024
override_dh_gencontrol:
2125
dh_gencontrol -- -v$(PACKAGEVERSION)

0 commit comments

Comments
 (0)