Debian软件包安装在/ proc目录下

时间:2012-02-17 23:42:52

标签: install package debian

我创建了一个包含一些php文件的包。我的规则文件如下:

 #!/usr/bin/make -f

icon = $(CURDIR)/rss.jpeg
script1 = $(CURDIR)/index.php
script2 = $(CURDIR)/feeds.conf
script3 = $(CURDIR)/rss_php.php
apacheConfig = $(CURDIR)/rssReader
launcher = $(CURDIR)/cw1-6005-pp6g11.desktop

DEST1 = $(CURDIR)/debian/cw1-6005-pp6g11/usr/share/cw1-6005-pp6g11
DEST2 = $(CURDIR)/debian/cw1-6005-pp6g11/usr/share/applications

build: build-stamp
build-stamp:
    dh_testdir

    # Add here commands to compile the package.
    #$(MAKE)

    touch build-stamp

clean:
    dh_testdir
    dh_testroot
    rm -f build-stamp

    # Add here commands to clean up after the build process.
    #-$(MAKE) clean
    #-$(MAKE) distclean

    dh_clean

install: build clean $(icon) $(script1) $(script2) $(script3) $(apacheConfig) $(launcher)
    dh_testdir
    dh_testroot
    dh_clean -k
    dh_installdirs

    # Add here commands to install the package into debian/<packagename>.
    #$(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install

    mkdir -m 755 -p $(DEST1)
    mkdir -m 755 -p $(DEST2)

    install -m 666 $(icon) $(DEST1)
    install -m 777 $(script1) $(DEST1)
    install -m 777 $(script2) $(DEST1)
    install -m 777 $(script3) $(DEST1)
    install -m 777 $(apacheConfig) $(DEST1) 
    install -m 777 $(launcher) $(DEST2)

# Build architecture-independent files here.
binary-indep: build install
    dh_testdir
    dh_testroot
    dh_installchangelogs
    dh_installdocs
    dh_installexamples
#   dh_installmenu
#   dh_installdebconf
#   dh_installlogrotate
#   dh_installemacsen
#   dh_installpam
#   dh_installmime
#   dh_installinit
#   dh_installcron
#   dh_installman
#   dh_installinfo
#   dh_undocumented
    dh_installman
    dh_link
    dh_compress
    dh_fixperms
    dh_installdeb
#   dh_perl
    dh_gencontrol
    dh_md5sums
    dh_builddeb

# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install

我希望软件包安装在usr / share / cw1-6005-pp6g11目录下,尽管它安装在/ proc / 29124 / cwd目录下

有谁知道我做错了什么。

注意:我通过vmware运行ubuntu 11。

亲切的问候, 帕夫洛斯

1 个答案:

答案 0 :(得分:1)

/proc文件系统很特别。那里没有“安装”。 /proc/29124/cwd仅仅是指向进程29124的当前目录的指针。

您可以这样做:

ls -l /proc/29124/

查看cwd链接的内容。