Skip to content

Commit

Permalink
- Moved snap and rock scripts into separate directories:
Browse files Browse the repository at this point in the history
  - `scripts/snap` for Snap-related scripts
  - `scripts/rock` for Rock-related scripts
- Removed `--with-tls=gnutls` from both `snapcraft.yaml` and `rockcraft.yaml` as it is no longer needed
- Updated `.gitignore`
  • Loading branch information
rudra-iitm committed Jan 21, 2025
1 parent 0aae4cc commit c9307e1
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 16 deletions.
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@
/xcode/CUPS.xcodeproj/project.xcworkspace/
/xcode/CUPS.xcodeproj/xcuserdata/
.DS_store
container-config
packages/parts
packages/stage
packages/prime
/container-config
/packaging/parts
/packaging/stage
/packaging/prime
*.snap
*.tar*
packages/snap/.snapcraft
/packaging/snap/.snapcraft
*.rock
7 changes: 1 addition & 6 deletions packaging/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,11 @@ parts:
- --disable-systemd
- --without-rcdir
- --with-docdir=/share/cups/doc
# We use "--with-tls=gnutls" here, as current CUPS defaults to SSL here
# and this is buggy, causing a segfault when serving out a HTTPS web
# interface page.
- --with-tls=gnutls
build-packages:
- git
- sed
- curl
- perl-base
- patch
- autoconf
- automake
- libtool
Expand Down Expand Up @@ -393,7 +388,7 @@ parts:

scripts:
plugin: dump
source: scripts/
source: scripts/rock/
organize:
run-cupsd.sh: /scripts/run-cupsd.sh
run-dbus.sh: /scripts/run-dbus.sh
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh

set -eux

# Ensure the lpadmin group exists
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh

set -eux

echo "Creating system users"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 1 addition & 5 deletions packaging/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,6 @@ parts:
- --without-rcdir
- --with-docdir=/share/cups/doc
- --with-container=snap
# We use "--with-tls=gnutls" here, as current CUPS defaults to SSL here
# and this is buggy, causing a segfault when serving out a HTTPS web
# interface page.
- --with-tls=gnutls
#- --enable-debug-printfs
override-pull: |
set -eux
Expand Down Expand Up @@ -644,7 +640,7 @@ parts:

scripts:
plugin: dump
source: scripts/
source: scripts/snap
override-build: |
set -eux
gcc -o port-occupied port-occupied.c
Expand Down

0 comments on commit c9307e1

Please sign in to comment.