{"id":18893121,"url":"https://github.com/rst0git/p4lang-packages","last_synced_at":"2026-04-28T23:33:28.617Z","repository":{"id":87742120,"uuid":"432421599","full_name":"rst0git/p4lang-packages","owner":"rst0git","description":"P4 Packages","archived":false,"fork":false,"pushed_at":"2024-02-13T14:49:57.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-31T06:47:25.532Z","etag":null,"topics":["debian","linux","p4","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rst0git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-11-27T09:43:31.000Z","updated_at":"2022-12-11T08:32:06.000Z","dependencies_parsed_at":"2024-02-13T16:10:12.695Z","dependency_job_id":null,"html_url":"https://github.com/rst0git/p4lang-packages","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rst0git%2Fp4lang-packages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rst0git%2Fp4lang-packages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rst0git%2Fp4lang-packages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rst0git%2Fp4lang-packages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rst0git","download_url":"https://codeload.github.com/rst0git/p4lang-packages/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239869222,"owners_count":19710485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debian","linux","p4","ubuntu"],"created_at":"2024-11-08T08:07:27.978Z","updated_at":"2026-02-26T18:30:16.510Z","avatar_url":"https://github.com/rst0git.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![p4c](https://build.opensuse.org/projects/home:p4lang/packages/p4lang-p4c/badge.svg?type=ratio)](https://build.opensuse.org/package/show/home:p4lang/p4lang-p4c)\n[![BMv2](https://build.opensuse.org/projects/home:p4lang/packages/p4lang-bmv2/badge.svg?type=ratio)](https://build.opensuse.org/package/show/home:p4lang/p4lang-bmv2)\n[![PI](https://build.opensuse.org/projects/home:p4lang/packages/p4lang-pi/badge.svg?type=ratio)](https://build.opensuse.org/package/show/home:p4lang/p4lang-pi)\n\n# P4 Packages\n\nThis repository contains all files necessary to build packages for Ubuntu and Debian.\n\nTo build all debian packages run inside Ubuntu 20.04 container using Docker run the\nfollowing script:\n\n```bash\n./build.sh\n```\n\n## Build dependencies\n\nNote that `build.sh` requires [Podman](https://podman.io/getting-started/installation.html) or [Docker](https://docs.docker.com/engine/install/) to be pre-installed.\n\n# Ubuntu/Debian\n\nBuilding a package for Ubuntu or Debian requires a number of files to be added in a subdirectory directory, called `debian`, in the source tree. These files can be used to build two types of packages: binary packages and source packages.\n\nBinary packages contain executables, configuration files, man pages, copyright information, and other documentation. They can be installed on Ubuntu/Debian system with `dpkg` or `apt-get`.\n\nIn contrast, source packages contain the original unmodified source code in gzip-compressed tar format, a file describing the source package, and usually a file that contains changes to the original source. Source packages are used by automated build systems such as [Launchpad](https://launchpad.net/) and [Open Build Service](https://openbuildservice.org/).\n\n## Building packages\n\nThe following commands can be used to build a Debian/Ubuntu package manually.\n\n### Binary package\n\nThis command creates a `.deb` file.\n```bash\ndpkg-buildpackage -us -uc\n```\n\n### Source package\n\nThis command creates a source package for a new version of the source code file (`.orig.tar.gz`).\n```bash\ndebuild -sa\n```\n\n### Source package update\n\nThis command creates an update for source package with an existing source code file (`.orig.tar.gz`).\n```bash\ndebuild -sd\n```\n\n## Files under the `debian` directory\n\n### `control`\n\nThis file contains [control information](https://www.debian.org/doc/debian-policy/ch-controlfields.html) used by package management tools.\n\n### `rules`\n\nThis is an executable Makefile that is used to create the package. Like any other Makefile, it consists of several rules, each of which defines a target and how it is carried out.\n\n### `changelog`\n\nThis file contains a brief explanation of changes and updates to the package.\n\n### `copyright`\n\nThis file contains information about the copyright and license of the upstream sources.\n\n### `compat`\n\nThis file specifies the [compatibility level](https://manpages.debian.org/bullseye/debhelper/debhelper.7.en.html#COMPATIBILITY_LEVELS) for the [debhelper](https://packages.debian.org/search?keywords=debhelper) tool.\n\n### `source/format`\n\nThis file contains the version number for the format of the source package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frst0git%2Fp4lang-packages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frst0git%2Fp4lang-packages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frst0git%2Fp4lang-packages/lists"}