From dc9cb702173c5fad56e1d67cb5638edd1b7603b0 Mon Sep 17 00:00:00 2001 From: sanchuanhehe Date: Sat, 14 Jun 2025 21:29:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(debian):=20=E6=9B=B4=E6=96=B0=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=AD=A5=E9=AA=A4=EF=BC=8C=E4=BD=BF=E7=94=A8=20instal?= =?UTF-8?q?l=20=E5=91=BD=E4=BB=A4=E7=AE=80=E5=8C=96=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=EF=BC=8C=E6=9B=B4=E6=96=B0=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7=E5=92=8C=E6=A0=87=E5=87=86=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 6 ++---- debian/compat | 2 +- debian/control | 6 +++--- debian/rules | 3 --- 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 726b052..b0f23cd 100644 --- a/Makefile +++ b/Makefile @@ -114,9 +114,7 @@ deb-clean: -@rm -f ../chsrc_*.deb ../chsrc_*.changes ../chsrc_*.buildinfo install: $(Target-Name) - @mkdir -p $(DESTDIR)/usr/bin - @mkdir -p $(DESTDIR)/usr/share/man/man1 - @cp $(Target-Name) $(DESTDIR)/usr/bin/ - @cp doc/chsrc.1 $(DESTDIR)/usr/share/man/man1/ 2>/dev/null || true + install -D -m 755 $(Target-Name) $(DESTDIR)/usr/bin/$(Target-Name) + install -D -m 644 doc/chsrc.1 $(DESTDIR)/usr/share/man/man1/chsrc.1 .PHONY: all CI debug test test-xy test-fw fastcheck test-cli clean deb-prepare deb-build deb-clean install diff --git a/debian/compat b/debian/compat index ec63514..b1bd38b 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -9 +13 diff --git a/debian/control b/debian/control index ce45b15..631ba08 100644 --- a/debian/control +++ b/debian/control @@ -1,9 +1,9 @@ Source: chsrc Section: utils Priority: optional -Maintainer: Aoran Zeng -Build-Depends: debhelper (>= 9), build-essential, libc6-dev -Standards-Version: 4.1.2 +Maintainer: sanchuanhehe +Build-Depends: debhelper-compat (= 13), build-essential, libc6-dev +Standards-Version: 4.6.0 Homepage: https://github.com/RubyMetric/chsrc Vcs-Git: https://github.com/RubyMetric/chsrc.git Vcs-Browser: https://github.com/RubyMetric/chsrc diff --git a/debian/rules b/debian/rules index 3ec8f5d..70183c0 100755 --- a/debian/rules +++ b/debian/rules @@ -8,6 +8,3 @@ override_dh_auto_build: override_dh_auto_install: $(MAKE) install DESTDIR=$(CURDIR)/debian/chsrc - -override_dh_auto_clean: - $(MAKE) clean