dh_install 找不到文件

dh_install 找不到文件

我正在尝试创建一个新包,但我遇到配置文件问题。在根目录中,我有所有的源文件和配置文件。当我尝试构建包时,会创建二进制文件(从我的源代码)并将其正确复制到应有的位置。问题是我有一个“.ini”文件根本无法复制到包中。 dh_install 对于该文件返回“未找到”。

这是我的结构:

/myproject/rbfeeder.ini
/myproject/sources.c, etc...
/myproject/Makefile
/myproject/debian/rules
/myproject/debian/mypackage.install

当我运行时dpkg-buildpackage -b -us -uc,我收到此错误:/home/pi/rbfeeder_source/rbfeeder_split/debian/rbfeeder.install: 1: /home/pi/rbfeeder_source/rbfeeder_split/debian/rbfeeder.install: rbfeeder.ini: not found

这是我的规则文件:

#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1

# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

export DH_VERBOSE=10

# debmake generated override targets
# This is example for Cmake (See http://bugs.debian.org/641051 )
#override_dh_auto_configure:
#   dh_auto_configure -- \
#   -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)

override_dh_installinit:
    dh_systemd_enable -prbfeeder --name=rbfeeder rbfeeder.service
    dh_installinit -prbfeeder --no-start --noscripts
#   dh_systemd_start -prbfeeder --no-restart-on-upgrade

override_dh_install:
    dh_install
    install -d debian/rbfeeder/usr/bin  
    cp -a rbfeeder debian/rbfeeder/usr/bin/rbfeeder
    cp -a dump1090-rb debian/rbfeeder/usr/bin/dump1090-rb

override_dh_systemd_start:
    echo "Not running dh_systemd_start"


override_dh_usrlocal:

# main packaging script based on dh7 syntax
%:
    dh $@ --with=systemd

这是我的 rbfeeder.install 文件:

rbfeeder.ini etc/

相关内容