Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7794187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:42:35+00:00 2026-06-01T22:42:35+00:00

hi there i have a problem to generate a debian package i have 2

  • 0

hi there i have a problem to generate a debian package

i have 2 files to install 1 is a BASH SCRIPT
the other is .DESKTOP FILE

/kate-folder-service-menu-0.1.0$ tree
.
└── usr
    ├── bin
    │   └── ktexeditor-open-folder
    └── share
        └── kde4
            └── services
                └── ServiceMenus
                      └── kate-folder.desktop

Now i have created all the stuff, with

dh_make -s -c gpl

i have edited:

-control file
-copyright file
-rules file

in the rules file i have made :

#!/usr/bin/make -f

# %:
#   dh $@ --with-lzma

# -*- makefile -*-

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

configure: configure-stamp
configure-stamp:
    dh_testdir
    touch configure-stamp


build: build-stamp

build-stamp: configure-stamp 
    dh_testdir
    touch $@

clean:
    dh_testdir
    dh_testroot
    rm -f build-stamp configure-stamp
    dh_clean 

install: build
    dh_testdir
    dh_testroot
    dh_clean -k 
    dh_installdirs

binary-indep: build install

binary-arch: build install
    dh_testdir
    dh_testroot
    dh_installchangelogs 
    dh_installdocs
    dh_installexamples
    dh_installman
    dh_link
    dh_strip
    dh_compress
    dh_fixperms
    dh_installdeb
    dh_shlibdeps
    dh_gencontrol


    install --mode=777 -t debian/usr/bin usr/bin/ktexeditor-open-folder
    install --mode=644 -t debian/usr/share/kde4/services/ServiceMenus usr/share/kde4/services/ServiceMenus/kate-folder.desktop

    dh_md5sums
    dh_builddeb

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

now i did

debuild -uc -us --source-option=--include-binaries --source-option=-isession

and finally this

sudo pbuilder build MYSTUFF.dsc

but this bastard generates the debian package without the script and the service menu 😀

dpkg --contents kate-folder-service-menu_0.1.0-1_i386.deb 

drwxr-xr-x root/root         0 2012-04-14 14:53 ./
drwxr-xr-x root/root         0 2012-04-14 14:53 ./usr/
drwxr-xr-x root/root         0 2012-04-14 14:53 ./usr/share/
drwxr-xr-x root/root         0 2012-04-14 14:53 ./usr/share/doc/
drwxr-xr-x root/root         0 2012-04-14 14:53 ./usr/share/doc/kate-folder-service-menu/
-rw-r--r-- root/root       201 2012-04-12 11:16 ./usr/share/doc/kate-folder-service-menu/README.Debian
-rw-r--r-- root/root      1239 2012-04-12 15:31 ./usr/share/doc/kate-folder-service-menu/copyright
-rw-r--r-- root/root       152 2012-04-12 15:55 ./usr/share/doc/kate-folder-service-menu/changelog.Debian.gz
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:42:37+00:00Added an answer on June 1, 2026 at 10:42 pm

    That must be an ancient dh_make if it’s giving you old-style debhelper rules.

    I suggest a modern minimal debian/rules:

    #!/usr/bin/make -f
    %:
            dh $@
    

    Then put this in debian/install:

    usr/bin/ktexeditor-open-folder
    usr/share/kde4/services/ServiceMenus/kate-folder.desktop
    

    That’ll use dh_install to put them in the right place, and do all the other usual stuff to generate the package.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

rails new command does not generate public/javascript folder with js files there.(and other ways
I have a problem downloading particular file types by WebClient. So there are no
I have a perfectly functioning perl script (written in bash terminal on debian linux)
i have problem with libhid . i found that there 2 way 4 accessing
I have problem with my application. I have table report, there are 2 column
I have a problem. There are two classes: struct Base { Base* retain() {
I have some problem with Android AsyncTask. There is an Activity which contains some
I have a problem with an MS Chart chart type column. If there are
I have a problem with sorting NSTableColumn contents. In my NSTableView there are three
I have one problem with android calendar programming, so If there are 2 months

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.