简体   繁体   English

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

[英]Debian package installed in /proc directory

I created a package which contains some php files. 我创建了一个包含一些php文件的软件包。 My rules files is as follows: 我的规则文件如下:

 #!/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

I am expecting that the package will be installed under the usr/share/cw1-6005-pp6g11 directory, though it is installed under /proc/29124/cwd directory 我期望该软件包将安装在usr / share / cw1-6005-pp6g11目录下,尽管它已安装在/ proc / 29124 / cwd目录下

Does anyone know what i am doing wrong. 有谁知道我在做什么错。

Note: i run ubuntu 11 via vmware. 注意:我通过vmware运行ubuntu 11。

Kind Regards, Pavlos 亲切的问候,Pavlos

The /proc filesystem is special. /proc文件系统是特殊的。 There is nothing "installed" there. 那里没有“安装”的东西。 /proc/29124/cwd is merely a pointer to the current directory for process 29124. /proc/29124/cwd仅仅是指向进程29124的当前目录的指针。

You might be able to do: 您可能可以做到:

ls -l /proc/29124/

to see what cwd links to. 看看cwd链接到什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM