Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big Debian package refactor #5

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

ehbello
Copy link

@ehbello ehbello commented Oct 20, 2024

This pull request introduces significant improvements to the Debian packaging for the RockPi Penta SATA Hat software, enhancing its organization, maintainability, and compliance with packaging standards.

The changes address the need for a more consistent and well-structured Debian packaging process, allowing for easier integration and potential contributions to platforms like Armbian.

Key Improvements:

  • New Repository Structure: The application source code and Debian packaging scripts are now separated into distinct directories for better organization.

  • Debian Packaging:

    • Integrated the source of the Debian Tree Blob overlay.
    • Leveraged debhelper scripts to enhance the clarity and organization of the debian directory.
    • Added a changelog file to track changes over time.
    • Included a copyright file detailing the licenses for the main application and resources.
    • Introduced a specification for source Debian packages, which is useful for future contributions to distributions such as Armbian.
    • Increased the version number to 0.3.0 to reflect the updates.
  • Filesystem Hierarchy Standard (FHS) Compliance:

    • Configuration files (rockpi-penta.conf and environment settings) have been moved to /etc/rockpi-penta/.
    • Python scripts are now located in /usr/share/rockpi-penta/ to align with FHS best practices, though further optimization is possible in this area.
  • Improved Post-installation and Pre-removal Scripts: The postinst and prerm scripts have been enhanced to ensure idempotency, allowing for more reliable installations and removals.

  • New .gitignore File: Updated to reflect the recent structural and procedural changes in the repository.

  • GitHub Workflow Updates:

    • The build process has been updated to automatically create a new draft release in the repository, including the generated artifacts, ensuring a more efficient release workflow.
  • Consolidation of Development Branches:

    • This pull request also includes all pending changes from the dev branch, consolidating them into the master branch (now commonly referred to as main in modern repositories). This restructuring encourages the use of a single primary branch for development and aligns with current best practices, simplifying the development workflow and repository management.

These changes aim to improve the maintainability and clarity of the RockPi Penta SATA Hat software, aligning with packaging standards and enhancing the overall development experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants