{"id":30815117,"url":"https://github.com/mietzen/template-debian-pkg-repo","last_synced_at":"2025-09-06T08:08:13.641Z","repository":{"id":308135651,"uuid":"1031718823","full_name":"mietzen/template-debian-pkg-repo","owner":"mietzen","description":"Template for a Debian Package Repository hosted on GH-Pages","archived":false,"fork":false,"pushed_at":"2025-08-06T05:18:54.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-06T05:58:18.807Z","etag":null,"topics":["debian","dev","pkg-repo","template"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mietzen.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-04T08:23:16.000Z","updated_at":"2025-08-06T05:18:57.000Z","dependencies_parsed_at":"2025-08-04T13:08:05.209Z","dependency_job_id":"89bb90be-4316-4cae-8571-32893ec5cb07","html_url":"https://github.com/mietzen/template-debian-pkg-repo","commit_stats":null,"previous_names":["mietzen/template-debian-pkg-repo"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/mietzen/template-debian-pkg-repo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mietzen%2Ftemplate-debian-pkg-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mietzen%2Ftemplate-debian-pkg-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mietzen%2Ftemplate-debian-pkg-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mietzen%2Ftemplate-debian-pkg-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mietzen","download_url":"https://codeload.github.com/mietzen/template-debian-pkg-repo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mietzen%2Ftemplate-debian-pkg-repo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273874160,"owners_count":25183368,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","dev","pkg-repo","template"],"created_at":"2025-09-06T08:05:00.504Z","updated_at":"2025-09-06T08:08:13.605Z","avatar_url":"https://github.com/mietzen.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Debian Repository on GitHub Pages\n\nThis template repository automatically creates and maintains a Debian package repository hosted on GitHub Pages by pulling `.deb` packages from GitHub releases.\n\n## Setup\n\n### Configure Packages\n\nEdit `packages.yml` to list the GitHub repositories you want to include:\n\n```yaml\npackages:\n  example-package-1:\n    url: https://github.com/user/repo1\n    version: \"1.2.3\"\n    # Optional regex to select which .deb assets to include from the release\n    asset_regex: '.*amd64.*'\n  example-package-2:\n    url: https://github.com/user/repo2\n    version: \"2.0.1\"\n    asset_regex: '.*all.*'\n```\n\n#### asset_regex usage\n\n- asset_regex is an optional regular expression used to filter release assets by filename before downloading. Only files ending with .deb are ever considered. If asset_regex is omitted, all .deb assets from the release are eligible.\n- Invalid regular expressions are safely ignored and treated as if no filter was provided.\n- Examples:\n  - Match architecture-specific packages:\n    - '.*amd64.*' selects .deb assets that contain amd64 in their filename.\n  - Match no-arch packages:\n    - '.*all.*' selects Architecture: all packages that are commonly built once for all architectures.\n  - Match multiple patterns:\n    - '.*(amd64|arm64).*' selects both amd64 and arm64 assets from the same release.\n  - Capture groups are allowed but unused; matching is boolean only.\n\nNote: Filtering by asset_regex affects which assets are downloaded, but the actual Architecture used in repository metadata is always derived from the package’s control file inside the .deb.\n\n### Enable GitHub Pages\n\n1. Go to your repository settings\n2. Navigate to \"Pages\" in the sidebar\n3. Select \"GitHub Actions\" as the source\n4. The workflows will automatically deploy your repository\n\n## How architectures are determined (dynamic discovery)\n\nArchitectures are discovered dynamically based on the Packages files that are generated:\n\n- The build step downloads selected .deb assets and reads their control metadata.\n- Packages are grouped by their control Architecture field:\n  - If Architecture is all, entries are added to a dedicated all bucket.\n  - Otherwise, entries are associated with their specific architecture (e.g., amd64, arm64, i386, etc.).\n- Packages files are generated per-architecture and for all. Each per-arch Packages file includes the union of:\n  - All packages whose Architecture equals that arch\n  - All packages whose Architecture is all\n- The Release file Architectures field is derived at deploy time by scanning which binary- directories exist under dists/stable/main.\n\nResult:\n- If only Architecture: all packages exist, the repository will publish binary-all and the Release file will list Architectures: all.\n- If you also include, for example, amd64 packages, both binary-all and binary-amd64 are present and Release will list Architectures: all amd64.\n\n## Special handling: Architecture: all\n\n- A single canonical Packages file for all is generated at dists/stable/main/binary-all/Packages.\n- Each per-architecture Packages file additionally includes the all entries. This ensures clients on any specific architecture can install no-arch packages without mixing components.\n\nPractical implications:\n- You can publish only no-arch packages and still have a valid repository (Architectures: all).\n- Mixing all with arch-specific packages is supported; clients will see all packages regardless of the chosen architecture.\n\n## Usage\n\n### Adding your Repository to your System\n\n```bash\necho \"deb [trusted=yes] https://\u003cGH-USER\u003e.github.io/\u003cREPO-NAME\u003e/ stable main\" | sudo tee /etc/apt/sources.list.d/my-deb-pkgs.list\nsudo apt-get update\n```\n\n### Adding New Packages\n\n1. Add the package to `packages.yml`:\n   ```yaml\n   packages:\n     new-package:\n       url: https://github.com/owner/new-package-repo\n       version: \"1.0.0\"\n       # Optional: filter assets by filename to specific architectures\n       asset_regex: '.*(amd64|arm64|all).*'\n   ```\n\n2. The update workflow will automatically detect new releases daily, or you can trigger it manually:\n   - Go to Actions → Update Package List → Run workflow\n\n## License\n\nThis repository structure and scripts are provided under MIT License. Individual packages retain their original licenses.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmietzen%2Ftemplate-debian-pkg-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmietzen%2Ftemplate-debian-pkg-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmietzen%2Ftemplate-debian-pkg-repo/lists"}