{"action":"created","issue":{"url":"https://api.github.com/repos/hephaest0s/usbkill/issues/75","repository_url":"https://api.github.com/repos/hephaest0s/usbkill","labels_url":"https://api.github.com/repos/hephaest0s/usbkill/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/hephaest0s/usbkill/issues/75/comments","events_url":"https://api.github.com/repos/hephaest0s/usbkill/issues/75/events","html_url":"https://github.com/hephaest0s/usbkill/issues/75","id":174619515,"number":75,"title":"Packaging USBKill for Debian","user":{"login":"HulaHoopWhonix","id":7875239,"avatar_url":"https://avatars.githubusercontent.com/u/7875239?v=3","gravatar_id":"","url":"https://api.github.com/users/HulaHoopWhonix","html_url":"https://github.com/HulaHoopWhonix","followers_url":"https://api.github.com/users/HulaHoopWhonix/followers","following_url":"https://api.github.com/users/HulaHoopWhonix/following{/other_user}","gists_url":"https://api.github.com/users/HulaHoopWhonix/gists{/gist_id}","starred_url":"https://api.github.com/users/HulaHoopWhonix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HulaHoopWhonix/subscriptions","organizations_url":"https://api.github.com/users/HulaHoopWhonix/orgs","repos_url":"https://api.github.com/users/HulaHoopWhonix/repos","events_url":"https://api.github.com/users/HulaHoopWhonix/events{/privacy}","received_events_url":"https://api.github.com/users/HulaHoopWhonix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-01T20:35:54Z","updated_at":"2016-11-30T10:46:48Z","closed_at":null,"body":"Hi. Please consider packaging USBKill for Debian. Will make a neat addition to PC/server security.\n"},"comment":{"url":"https://api.github.com/repos/hephaest0s/usbkill/issues/comments/263842397","html_url":"https://github.com/hephaest0s/usbkill/issues/75#issuecomment-263842397","issue_url":"https://api.github.com/repos/hephaest0s/usbkill/issues/75","id":263842397,"user":{"login":"arpit1997","id":10682054,"avatar_url":"https://avatars.githubusercontent.com/u/10682054?v=3","gravatar_id":"","url":"https://api.github.com/users/arpit1997","html_url":"https://github.com/arpit1997","followers_url":"https://api.github.com/users/arpit1997/followers","following_url":"https://api.github.com/users/arpit1997/following{/other_user}","gists_url":"https://api.github.com/users/arpit1997/gists{/gist_id}","starred_url":"https://api.github.com/users/arpit1997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arpit1997/subscriptions","organizations_url":"https://api.github.com/users/arpit1997/orgs","repos_url":"https://api.github.com/users/arpit1997/repos","events_url":"https://api.github.com/users/arpit1997/events{/privacy}","received_events_url":"https://api.github.com/users/arpit1997/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T10:46:48Z","updated_at":"2016-11-30T10:46:48Z","body":"It is a great suggestion. Here is the procedure for creating debian packages\r\n```\r\n63\r\ndown vote\r\naccepted\r\n+50\r\nWhat follows is a basic example of how a source package for a python script might look. While most of the packaging tutorials are a bit complex, they can really help if you hit a problem. That said, I first learned the basics of Debian packaging by simply looking at Debian packages. apt-get source something similar and learn by example.\r\n\r\nHere's your basic source package layout:\r\n\r\nmy-script/\r\n    -- myScript\r\n    -- debian/\r\n        -- changelog\r\n        -- copyright\r\n        -- compat\r\n        -- rules\r\n        -- control\r\n        -- install\r\nRun dch --create in the directory to create a properly formatted debian/changelog entry.\r\n\r\ndebian/copyright should look like:\r\n\r\nFormat: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\r\nUpstream-Name: myScript\r\nUpstream-Contact: Name, <email@address>\r\n\r\nFiles: *\r\nCopyright: 2011, Name, <email@address>\r\nLicense: (GPL-2+ | LGPL-2 | GPL-3 | whatever)\r\n Full text of licence.\r\n .\r\n Unless there is a it can be found in /usr/share/common-licenses\r\ndebian/compat can just be: 7\r\n\r\ndebian/rules:\r\n\r\n#!/usr/bin/make -f\r\n\r\n%:\r\n    dh $@ --with python2\r\nNote that there must be \"tab\" before dh $@ --with python2, not spaces.\r\n\r\ndebian/control:\r\n\r\nSource: my-script\r\nSection: python\r\nPriority: optional\r\nMaintainer: Name, <email@address>\r\nBuild-Depends: debhelper (>= 7),\r\n               python (>= 2.6.6-3~)\r\nStandards-Version: 3.9.2\r\nX-Python-Version: >= 2.6\r\n\r\n\r\nPackage: my-script\r\nArchitecture: all\r\nSection: python\r\nDepends: python-appindicator, ${misc:Depends}, ${python:Depends}\r\nDescription: short description\r\n A long description goes here.\r\n .\r\n It can contain multiple paragraphs\r\ndebian/install:\r\n\r\nmyScript usr/bin/\r\nThis file indicates which file will be installed into which folder.\r\n\r\nNow build it with debuild --no-tgz-check\r\n\r\nThis will create a functional deb package. Lintian is going to throw a few warnings regarding the lack of an orig.tar.gz, but unless you plan on creating a proper upstream project that makes tarball releases you'll probably just want to ignore that for now.\r\n```"}}
{"actor":{"display_login":"arpit1997"}}