Skip to content

Add installation packaging script for FreeBSD #431

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CodingCarpincho
Copy link

Swift should be distributed to FreeBSD users as a .pkg file which can be installed using pkg, the system package manager. This allows for a better user experience because it handles installing all of the required dependencies as well as placing the compiler in the user's PATH.

To create a FreeBSD package, we should have a script that automates the process of creating one. This commit adds such a script. It is designed to be invoked by the CI system, but can also be invoked by an end user.

Swift should be distributed to FreeBSD users as a .pkg file which
can be installed using pkg, the system package manager. This allows
for a better user experience because it handles installing all of
the required dependencies as well as placing the compiler in the
user's PATH.

To create a FreeBSD package, we should have a script that automates
the process of creating one. This commit adds such a script. It is
designed to be invoked by the CI system, but can also be invoked
by an end user.
@shahmishal
Copy link
Member

Thank you!

"prefix": "/usr/local",
"origin": "",
"comment": "",
"maintainer": "Apple Inc.",
Copy link
Member

@michael-yuji michael-yuji Jun 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maintainer should be a email address. see pkg-create(8)

"arch": "$(uname -m)",
"prefix": "/usr/local",
"origin": "",
"comment": "",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this should be a one-liner description that will show up in pkg info

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the description field, we already have “the Swift programming language.” Any suggestions on what a short, succinct comment about the package could be?

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.

4 participants