Commit graph

53 commits

Author SHA1 Message Date
9abf0cb4ee Update CHANGELOG
Some checks failed
portzap / shellcheck (push) Has been cancelled
2024-09-16 06:32:59 -03:00
e06f8aea79 Create doas.conf if neccessary
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-09-15 22:05:27 -03:00
21cc967587 s|Formats|Format|g
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-09-14 19:50:07 -03:00
7438c9febe Remove duplicate CHANGELOG entries
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-09-14 19:48:30 -03:00
f48671403c Revisit CHANGELOG
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-09-14 07:04:40 -03:00
76d9e0a3bb Log when portzap rm completes successfully
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-09-14 03:39:52 -03:00
f7374a63b8 Format log messages with program name
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-09-14 02:33:05 -03:00
d449bcc1b4 Fix typo in commands/portzap-setup
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-09-13 04:57:50 -03:00
9af7654a9f Replace chmod with -M option 2024-09-13 04:51:29 -03:00
2b65970db6 v1.2.0
Some checks failed
portzap / shellcheck (push) Has been cancelled
2024-09-10 23:46:30 -03:00
e5975b2b67 Default to a "stable" clone URL
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-09-10 21:56:35 -03:00
b3c7942688 CHANGELOG updates
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-09-10 11:43:16 -03:00
2d6c138d34 Sync with sourcezap
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-09-10 03:44:08 -03:00
5328bd72e0 v1.1.0
Some checks failed
portzap / shellcheck (push) Has been cancelled
2024-08-24 10:18:54 -03:00
a38962782f Add libexec/portzap/utils/get-umask
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-08-19 23:21:26 -03:00
efc9f7ed28 Break up 'portzap-install' into multiple files
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-08-19 00:01:12 -03:00
493eb51b68 Add 'portzap [setup|teardown]'
And improve setup/setup-doas.
2024-08-17 17:15:30 -03:00
364d40c71f RELNOTES => CHANGELOG
Some checks failed
portzap / shellcheck (push) Has been cancelled
2024-08-09 23:32:37 -03:00
f514dd4f47 Update RELNOTES
Some checks failed
portzap / shellcheck (push) Has been cancelled
2024-08-07 02:54:31 -03:00
c4e95e3e48 v1.0.0
Some checks failed
portzap / shellcheck (push) Has been cancelled
2024-08-03 00:41:37 -03:00
d9769880fe Update RELNOTES 2024-08-03 00:41:05 -03:00
1822c14e63 Update RELNOTES
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-07-26 15:38:49 -03:00
382581136e Add setup/setup-user
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-07-26 11:34:07 -03:00
c41594ef62 Fix typo in RELNOTES
Some checks failed
portzap / shellcheck (push) Has been cancelled
2024-07-21 22:20:59 -03:00
ffca5c161d Remove share/portzap/crontab (unused)
Some checks are pending
portzap / shellcheck (push) Waiting to run
2024-07-21 22:09:09 -03:00
c69b357a36 Move LICENSE to share/portzap/ 2024-07-21 21:49:53 -03:00
cb04ac7531 Update RELNOTES 2024-07-21 21:44:13 -03:00
af917c0649 Replace script
Remove scripts that have been replaced by alternatives
2024-07-21 21:41:49 -03:00
c2a3578a55 Replace utils/gitexec with utils/git/run 2024-07-21 21:28:46 -03:00
ec0fa2f93e Remove "set -x" 2024-07-21 21:04:44 -03:00
69a66825ab Add setup-cron
Add a setup script that adds a crontab entry that
runs 'portzap pull' everyday at 12AM localtime
2024-06-30 04:25:23 -03:00
48d182813c v0.12.0 2024-05-25 19:25:23 -03:00
f4c45cd481 v0.11.5 2024-05-23 01:12:01 -03:00
84bbb4c92b v0.11.4 2024-05-23 00:17:29 -03:00
1eeea5ff23 v0.11.3 2024-05-23 00:08:51 -03:00
2570979e00 v0.11.2 2024-05-22 22:50:18 -03:00
f495c3c62b v0.11.1 2024-05-22 21:17:51 -03:00
b94c97006d v0.11.0 2024-05-22 13:52:39 -03:00
bcc78a8a8d v0.10.1 2024-04-20 17:22:43 -03:00
6ed089e6fb v0.10.0 2024-04-20 11:03:29 -03:00
bd84f7f134 Honor umask
This change is a revert of previous commits that worked around
the umask not being honored. This commit runs git with the correct
umask, and avoids any need to run chmod manually. The number of
doas.conf rules has been reduced to 2.
2024-04-20 05:24:14 -03:00
105b4f6594 Alter default umask / mode
'/home/_portzap/ports/' and '/usr/ports/' have reduced permissions for
members of the '_portzap' group, who now possess read-only permissions
for both directories.

The 'portzap erase' command must be run by root, since members of the
'_portzap' group can't delete contents of either of those directories
anymore.
2024-04-20 02:23:20 -03:00
1739b7d794 Run chmod after clone
The umask appears to be ignored (maybe it is reset after running
'git config core.filemode off' ?). Run chmod to fix.
2024-04-20 01:40:13 -03:00
589702e7e3 Handle file mode change when switching branch 2024-04-19 07:29:29 -03:00
3168b47a45 Reduce doas.conf rules
This commit reduces the number of doas.conf rules to 4.
libexec/ scripts now query access permissions rather than
bin/portzap doing it.
2024-04-19 06:22:03 -03:00
4aaa685b3d Switch branch in 'portzap pull'
This commit covers a few changes:

* The 'portzap pull' command now switches to '$PORTZAP_BRANCH'
  if 'git branch --show-current' returns a different branch.

* The 'portzap pull' command fixes permissions and ownership on
  '/home/_portzap/ports/.git' before running any git commands. The
  owner and permissions can change by interacting with the
  git repository directly, as a user other than '_portzap'.

* doas.conf has been changed to be slightly more strict
2024-04-19 04:15:12 -03:00
b16722c219 v0.9.4 2024-04-18 20:21:12 -03:00
3c8697f186 Add -v switch
And move VERSION to share/portzap/VERSION
2024-04-18 20:21:01 -03:00
50d648f06a Add "portzap erase"
I haven't decided whether or not only root can do this (leaning towards
not), and we might want to be more flexible and let the user choose to
delete one of the two directories. For now it works.
2024-04-17 20:21:34 -03:00
73ec936871 Perform incremental updates (via doas) 2024-04-08 14:33:02 -03:00