2012-02-17 10 views
0

いくつかのphpファイルを含むパッケージを作成しました。マイルールファイルは次のとおりです。Debianパッケージが/ procディレクトリにインストールされています

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

私はそれは/ procの/ 29124/CWDディレクトリの下

をインストールされているもののパッケージは、USR /シェア/ cw1-6005-pp6g11ディレクトリの下にインストールされることを期待しています

誰かが私が間違っていることを知っていますか?

注:私はubuntu 11をvmware経由で実行しています。

種類よろしく、 Pavlos

答えて

1

/procファイルシステムが特別です。そこには何もインストールされていません。

ls -l /proc/29124/ 

は何cwdリンクに参照するには:/proc/29124/cwdは単にあなたがすることができるかもしれないプロセス29124.

の現在のディレクトリへのポインタです。

+0

ありがとうございます!私はあなたが言ったことをしました、そして、私はそれが/ home/ppoliani/INFO6005を指していることに気付きました。このフォルダには、自分のパッケージとソースコードを含むディレクトリが含まれています。私は、なぜusr/share/cw1-6005-pp6g11にフォルダが作成されていないのだろうと思いますか? – ppoliani

+0

これは、 'DEST1 = $(CURDIR)/ debian/cw1-6005-pp6g11/usr/share/cw1-6005-pp6g11'は'/usr/share/cw1-6005-pp6g11'ではありません。 '$(CURDIR)'の下にあるものですが、私はそれが何であるか分かりません。 –

+0

実際には私の場合は/ home/ppoliani/INFO6005のカレントディレクトリです。私は、ソースファイルがコピーされるディレクトリを定義する正しい方法だと読んでいます。ではない? – ppoliani

関連する問題